Package net.alteiar.shared

Examples of net.alteiar.shared.UniqueID


    try {
      Timer t = new Timer();
      t.start();
      ImageBean bean = new ImageBean(new WebImage(new URL(
          "http://www.alteiar.net/MyUpload/large.jpg")));
      UniqueID id = bean.getId();

      CampaignClient.getInstance().addBean(bean);
      t.end("server sended");
      bean = CampaignClient.getInstance().getBean(id, time30second);
      if (bean != null) {
View Full Code Here


  public UniqueID getBackground() {
    return this.backgroundId;
  }

  public void setBackground(UniqueID background) {
    UniqueID oldValue = this.backgroundId;
    if (notifyRemote(PROP_BACKGROUND_PROPERTY, oldValue, background)) {
      this.backgroundId = background;
      notifyLocal(PROP_BACKGROUND_PROPERTY, oldValue, background);
    }
  }
View Full Code Here

  public UniqueID getFilter() {
    return filterId;
  }

  public void setFilter(UniqueID filter) {
    UniqueID oldValue = this.filterId;
    if (notifyRemote(PROP_FILTER_PROPERTY, oldValue, filter)) {
      this.filterId = filter;
      notifyLocal(PROP_FILTER_PROPERTY, oldValue, filter);
    }
  }
View Full Code Here

  public SerializableFile() {
  }

  public SerializableFile(File file) throws IOException {
    id = new UniqueID();

    String campaignDir = CampaignClient.getInstance()
        .getCampaignDirectory();
    String filename = FILE_DIR + "/"
        + DocumentIO.validateFilename(id.toString());
View Full Code Here

  public UniqueID getImage() {
    return image;
  }

  public void setImage(UniqueID image) {
    UniqueID oldValue = this.image;
    if (notifyRemote(PROP_IMAGE_PROPERTY, oldValue, image)) {
      this.image = image;
      notifyLocal(PROP_IMAGE_PROPERTY, oldValue, image);
    }
  }
View Full Code Here

    moveUnitTo(new MoveAction(currentIdx, newIdx));
  }

  private void moveUnitTo(MoveAction move) {
    if (notifyRemote(METH_MOVE_UNIT_TO_METHOD, null, move)) {
      UniqueID unit = unitsId.get(move.getOldIdx());

      if (move.getNewIdx() >= unitsId.size()) {
        unitsId.add(unit);
      } else {
        unitsId.add(move.getNewIdx(), unit);
View Full Code Here

  public int getSourceActions(JComponent c) {
    return TransferHandler.MOVE;
  }

  protected UniqueID verifyDrop(TransferSupport info) {
    UniqueID data = null;

    if (info.isDrop()) {
      Transferable t = info.getTransferable();
      try {
        data = (UniqueID) t
View Full Code Here

  /**
   * Perform the actual import.
   */
  @Override
  public boolean importData(TransferSupport info) {
    UniqueID data = verifyDrop(info);

    if (data != null) {
      JTree target = (JTree) info.getComponent();
      BeanBasicDocument docToMove = CampaignClient.getInstance().getBean(
          data);

      Point p = info.getDropLocation().getDropPoint();
      TreePath path = target.getPathForLocation(p.x, p.y);

      BeanDirectory targetDir = null;
      if (path == null) {
        targetDir = CampaignClient.getInstance().getRootDirectory();
      } else {
        DocumentNode node = (DocumentNode) path.getLastPathComponent();

        if (node.getUserObject().isDirectory()) {
          targetDir = (BeanDirectory) node.getUserObject();
        } else {
          UniqueID dirBean = node.getUserObject().getParent();
          targetDir = CampaignClient.getInstance().getBean(dirBean);
        }
      }

      BeanDirectory previousDir = CampaignClient.getInstance().getBean(
View Full Code Here

    try {
      Timer t = new Timer();
      t.start();
      ImageBean bean = new ImageBean(new WebImage(new URL(
          "http://www.alteiar.net/images/cartes/Carte_du_monde.jpg")));
      UniqueID id = bean.getId();

      CampaignClient.getInstance().addNotPermaBean(bean);
      t.end("server sended");
      bean = CampaignClient.getInstance().getBean(id, time10second);
      if (bean != null) {
View Full Code Here

    try {
      Timer t = new Timer();
      t.start();
      ImageBean bean = new ImageBean(new WebImage(new URL(
          "http://www.alteiar.net/MyUpload/large.jpg")));
      UniqueID id = bean.getId();

      CampaignClient.getInstance().addNotPermaBean(bean);
      t.end("server sended");
      bean = CampaignClient.getInstance().getBean(id, time30second);
      if (bean != null) {
View Full Code Here

TOP

Related Classes of net.alteiar.shared.UniqueID

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.