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); }
public void setAddCaptionColon(boolean addCaptionColon) { this.addCaptionColon = addCaptionColon; formatText(activeProperty.getCaption(), activeProperty.isRequired()); }
public void setCellPadding(Insets padding) { property.setCellPadding(padding); }
public void setCaptionFont(Font f) { property.setCaptionFont(f); }
public Insets getCellPadding() { return property.getCellPadding(); }
public void setCaptionWidth(int width) { property.setCaptionWidth(width); }
public Font getCaptionFont() { return property.getCaptionFont(); }
public void setCaptionMnemonic(char c) { property.setCaptionMnemonic(c); }
public int getCaptionWidth() { return property.getCaptionWidth(); }
public char getCaptionMnemonic() { return property.getCaptionMnemonic(); }
public void setShowCaption(boolean show) { property.setShowCaption(show); }
public boolean isShowCaption() { return property.isShowCaption(); }
public void setCaption(String caption) { property.setCaption(caption); }
public String getCaption() { return property.getCaption(); }