Пример #1
0
  public void setLabelFor(Component c) {
    activeComponent = (JComponent) c;
    if (c instanceof ActiveControl) {
      ActiveControl ac = (ActiveControl) c;
      activeProperty = ac.getControlProperty();
      String acCaption = activeProperty.getCaption();
      if (forceUseActiveCaption
          || (!ValueUtil.isEmpty(acCaption) && !acCaption.equals("Caption"))) {
        setName(null);
        setExpression(null);
        formatText(activeProperty.getCaption(), activeProperty.isRequired());
        super.setDisplayedMnemonic(activeProperty.getCaptionMnemonic());
      }

      activeControlSupport = new ActiveControlSupport();
      activeProperty.addPropertyChangeListener(activeControlSupport);
    }
    super.setLabelFor(c);
  }
Пример #2
0
 public void setAddCaptionColon(boolean addCaptionColon) {
   this.addCaptionColon = addCaptionColon;
   formatText(activeProperty.getCaption(), activeProperty.isRequired());
 }
Пример #3
0
 public void setCellPadding(Insets padding) {
   property.setCellPadding(padding);
 }
Пример #4
0
 public void setCaptionFont(Font f) {
   property.setCaptionFont(f);
 }
Пример #5
0
 public Insets getCellPadding() {
   return property.getCellPadding();
 }
Пример #6
0
 public void setCaptionWidth(int width) {
   property.setCaptionWidth(width);
 }
Пример #7
0
 public Font getCaptionFont() {
   return property.getCaptionFont();
 }
Пример #8
0
 public void setCaptionMnemonic(char c) {
   property.setCaptionMnemonic(c);
 }
Пример #9
0
 public int getCaptionWidth() {
   return property.getCaptionWidth();
 }
Пример #10
0
 public char getCaptionMnemonic() {
   return property.getCaptionMnemonic();
 }
Пример #11
0
 public void setShowCaption(boolean show) {
   property.setShowCaption(show);
 }
Пример #12
0
 public boolean isShowCaption() {
   return property.isShowCaption();
 }
Пример #13
0
 public void setCaption(String caption) {
   property.setCaption(caption);
 }
Пример #14
0
 public String getCaption() {
   return property.getCaption();
 }