Package com.liferay.nativity.control

Examples of com.liferay.nativity.control.NativityMessage


  public void setFileIcon(String path, int iconId) {
    Map<String, Integer> map = new HashMap<String, Integer>(1);

    map.put(path, iconId);

    NativityMessage message = new NativityMessage(
      Constants.SET_FILE_ICONS, map);

    nativityControl.sendMessage(message);
  }
View Full Code Here


      map.put(entry.getKey(), entry.getValue());

      i++;

      if (i == _messageBufferSize) {
        NativityMessage message = new NativityMessage(
          Constants.SET_FILE_ICONS, map);

        nativityControl.sendMessage(message);

        map.clear();
        i = 0;
      }
    }

    if (i > 0) {
      NativityMessage message = new NativityMessage(
        Constants.SET_FILE_ICONS, map);

      nativityControl.sendMessage(message);
    }
  }
View Full Code Here

    super(nativityControl, fileIconControlCallback);
  }

  @Override
  public void disableFileIcons() {
    NativityMessage message = new NativityMessage(
      Constants.ENABLE_FILE_ICONS_WITH_CALLBACK, Boolean.FALSE);

    nativityControl.sendMessage(message);
  }
View Full Code Here

    nativityControl.sendMessage(message);
  }

  @Override
  public void enableFileIcons() {
    NativityMessage message = new NativityMessage(
      Constants.ENABLE_FILE_ICONS_WITH_CALLBACK, Boolean.TRUE);

    nativityControl.sendMessage(message);
  }
View Full Code Here

    nativityControl.sendMessage(message);
  }

  @Override
  public void refreshIcons() {
    NativityMessage message = new NativityMessage(
      Constants.REPAINT_ALL_ICONS, "");

    nativityControl.sendMessage(message);
  }
View Full Code Here

    nativityControl.sendMessage(message);
  }

  @Override
  public void removeFileIcon(String path) {
    NativityMessage message = new NativityMessage(
      Constants.REPAINT_ALL_ICONS, "");

    nativityControl.sendMessage(message);
  }
View Full Code Here

    nativityControl.sendMessage(message);
  }

  @Override
  public void removeFileIcons(String[] paths) {
    NativityMessage message = new NativityMessage(
      Constants.REPAINT_ALL_ICONS, "");

    nativityControl.sendMessage(message);
  }
View Full Code Here

    nativityControl.sendMessage(message);
  }

  @Override
  public void setFileIcon(String path, int iconId) {
    NativityMessage message = new NativityMessage(
      Constants.REPAINT_ALL_ICONS, "");

    nativityControl.sendMessage(message);
  }
View Full Code Here

    nativityControl.sendMessage(message);
  }

  @Override
  public void setFileIcons(Map<String, Integer> fileIconsMap) {
    NativityMessage message = new NativityMessage(
      Constants.REPAINT_ALL_ICONS, "");

    nativityControl.sendMessage(message);
  }
View Full Code Here

    List<String> items = new ArrayList<String>();

    items.add("ONE");

    NativityMessage message = new NativityMessage("BLAH", items);

    try {
      _logger.debug(_objectMapper.writeValueAsString(message));
    }
    catch (JsonProcessingException jpe) {
View Full Code Here

TOP

Related Classes of com.liferay.nativity.control.NativityMessage

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.