Package fr.soleil.comete.widget

Examples of fr.soleil.comete.widget.IComponent


  public AbstractWidget<?, String> initWidget() {
    return new TextField();
  }

  public void setEditable(boolean editable) {
    IComponent component = getComponent();
    if (component != null && component instanceof ITextField) {
      ((ITextField) component).setEditable(editable);
    }
  }
View Full Code Here


      ((ITextField) component).setEditable(editable);
    }
  }

  public boolean isEditable() {
    IComponent component = getComponent();
    if (component != null && component instanceof ITextField) {
      return ((ITextField) component).isEditable();
    }
    return false;
  }
View Full Code Here

    }
    return false;
  }

  public void setHorizontalAlignment(int halign) {
    IComponent component = getComponent();
    if (component != null && component instanceof ITextField) {
      ((ITextField) component).setHorizontalAlignment(halign);
    }
  }
View Full Code Here

      ((ITextField) component).setHorizontalAlignment(halign);
    }
  }

  public int getHorizontalAlignment() {
    IComponent component = getComponent();
    if (component != null && component instanceof ITextField) {
      return ((ITextField) component).getHorizontalAlignment();
    }
    return ITextField.CENTER;
  }
View Full Code Here

    widget.getComponent().setUseMaskManagement(true);
    return widget;
  }

  public void addImageViewerListener(IImageViewerListener listener) {
    IComponent component = getComponent();
    if (component != null && component instanceof IImageViewer) {
      ((IImageViewer) component).addImageViewerListener(listener);
    }
  }
View Full Code Here

      ((IImageViewer) component).addImageViewerListener(listener);
    }
  }

  public void removeImageViewerListener(IImageViewerListener listener) {
    IComponent component = getComponent();
    if (component != null && component instanceof IImageViewer) {
      ((IImageViewer) component).removeImageViewerListener(listener);
    }
  }
View Full Code Here

      ((IImageViewer) component).removeImageViewerListener(listener);
    }
  }

  public boolean isShowRoiInformationTable() {
    IComponent component = getComponent();
    if (component != null && component instanceof IImageViewer) {
      return ((IImageViewer) component).getShowRoiInformationTable();
    }
    return false;
  }
View Full Code Here

    }
    return false;
  }

  public void setShowRoiInformationTable(boolean showTable) {
    IComponent component = getComponent();
    if (component != null && component instanceof IImageViewer) {
      ((IImageViewer) component).setShowRoiInformationTable(showTable);
    }
  }
View Full Code Here

      ((IImageViewer) component).setShowRoiInformationTable(showTable);
    }
  }

  private void addRoi(IRoi roi) {
        IComponent component = getComponent();
        if (component != null && component instanceof IImageViewer) {
            ((IImageViewer) component).addRoi(roi);
        }
    }
View Full Code Here

  public AbstractWidget<?, Boolean> initWidget() {
    return new RadioButton();
  }

  public String getGroupName() {
    IComponent component = getComponent();
    if (component != null && component instanceof IRadioButton) {
      return ((IRadioButton) component).getGroupName();
    }
    return "";
  }
View Full Code Here

TOP

Related Classes of fr.soleil.comete.widget.IComponent

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.