/** * This method sets the value of Text, Widgets and pure Strings. Warning, right and center * justfication does not work for pure String cells, only graphics cells. */ public void setValue(String value) { if ((strValue == value) || ((strValue != null) && (strValue.equals(value)))) return; if (graphics != null) { if (graphics instanceof MiWidget) ((MiWidget) graphics).setValue(value); if (graphics instanceof MiText) ((MiText) graphics).setText(value); } strValue = value; table.invalidateLayout(); }
public void setVisible(boolean flag) { visible = flag; // Graphics may be a table (i.e. subwindow which is registered with Draw Manager) // which will get drawn regardless of whether this cell is visible or not... if (graphics != null) { graphics.setVisible(flag); } table.invalidateLayout(); }
// When assigned a string value this is used // (otherwise uses table's attributes) // Also used for statusHelp public void setAttributes(MiAttributes attributes) { this.attributes = attributes; table.invalidateLayout(); }
/** * ------------------------------------------------------ Sets the height of the column this cell * represents. Used by table row and column defaults only. If the desire is to not let the user * resize this height, then set this cell's attributes by setFixedHeight(true); * * @param width the height * @see #setFixedWidth * @see #getFixedHeight ------------------------------------------------------ */ public void setFixedHeight(MiDistance height) { fixedHeight = height; table.invalidateLayout(); }
/** * ------------------------------------------------------ Sets the width of the column this cell * represents. Used by table row and column defaults only. If the desire is to not let the user * resize this width, then set this cell's attributes by setFixedWidth(true); * * @param width the width * @see #getFixedWidth * @see #setFixedHeight ------------------------------------------------------ */ public void setFixedWidth(MiDistance width) { fixedWidth = width; table.invalidateLayout(); }
public void setMargins(MiMargins margins) { this.margins = margins; table.invalidateLayout(); }
public void setVerticalSizing(int sizing) { vSizing = sizing; table.invalidateLayout(); }
public void setHorizontalSizing(int sizing) { hSizing = sizing; table.invalidateLayout(); }
public void setVerticalJustification(int justification) { vJustification = justification; table.invalidateLayout(); }
public void setHorizontalJustification(int justification) { hJustification = justification; table.invalidateLayout(); }