Ejemplo n.º 1
0
  /**
   * 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();
  }
Ejemplo n.º 2
0
  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();
  }
Ejemplo n.º 3
0
 // 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();
 }
Ejemplo n.º 4
0
 /**
  * ------------------------------------------------------ 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();
 }
Ejemplo n.º 5
0
 /**
  * ------------------------------------------------------ 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();
 }
Ejemplo n.º 6
0
 public void setMargins(MiMargins margins) {
   this.margins = margins;
   table.invalidateLayout();
 }
Ejemplo n.º 7
0
 public void setVerticalSizing(int sizing) {
   vSizing = sizing;
   table.invalidateLayout();
 }
Ejemplo n.º 8
0
 public void setHorizontalSizing(int sizing) {
   hSizing = sizing;
   table.invalidateLayout();
 }
Ejemplo n.º 9
0
 public void setVerticalJustification(int justification) {
   vJustification = justification;
   table.invalidateLayout();
 }
Ejemplo n.º 10
0
 public void setHorizontalJustification(int justification) {
   hJustification = justification;
   table.invalidateLayout();
 }