JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.table.beans
Class JCLiveCellStyle

java.lang.Object
  |
  +--com.klg.jclass.table.JCCellStyle
        |
        +--com.klg.jclass.table.beans.JCLiveCellStyle
All Implemented Interfaces:
CellStyleModel, Cloneable, Serializable

public class JCLiveCellStyle
extends JCCellStyle

The JCLiveCellStyle class provides a default implementation of the CellStyleModel interface.

See Also:
Serialized Form

Field Summary
static int BEVEL_BORDER
           
static int SOFT_BEVEL_BORDER
           
 
Fields inherited from class com.klg.jclass.table.JCCellStyle
background, border, border_sides, border_sides_set, cell_border_color, cell_border_color_mode, cell_border_color_mode_set, changeSupport, clip_hints, clip_hints_set, data_type, data_type_set, editable, editable_set, editor, editor_set, font, foreground, horizontal_alignment, horizontal_alignment_set, parent_style, renderer, renderer_set, repeat_background, repeat_background_colors, repeat_background_set, repeat_foreground, repeat_foreground_colors, repeat_foreground_set, traversable, traversable_set, vertical_alignment, vertical_alignment_set
 
Fields inherited from interface com.klg.jclass.table.CellStyleModel
BOTTOM, CENTER, LEFT, RIGHT, SHOW_ALL, SHOW_HORIZONTAL, SHOW_NONE, SHOW_VERTICAL, TOP
 
Constructor Summary
JCLiveCellStyle(com.klg.jclass.table.beans.LiveTable table)
           
JCLiveCellStyle(com.klg.jclass.table.beans.LiveTable table, com.klg.jclass.cell.JCCellRenderer renderer)
           
JCLiveCellStyle(com.klg.jclass.table.beans.LiveTable table, com.klg.jclass.table.beans.JCLiveCellStyle style)
           
JCLiveCellStyle(String foreground, String background, String font, boolean editable, boolean traversable, int horizontal_alignment, int vertical_alignment, int border_type, int border_sides, int clip_hints, int cell_border_color_mode, String cell_border_color)
           
 
Method Summary
 Object clone()
          Returns a copy of the style object.
 int getCellBorderType()
          Returns the CellBorderModel type for the cell.
protected  int getSwingCellBorderType(Border border)
           
 boolean isBackgroundSet()
           
 boolean isCellBorderColorModeSet()
           
 boolean isCellBorderColorSet()
           
 boolean isCellBorderSidesSet()
           
 boolean isCellBorderTypeSet()
           
 boolean isClipHintsSet()
           
 boolean isEditableSet()
           
 boolean isFontSet()
           
 boolean isForegroundSet()
           
 boolean isHorizontalAlignmentSet()
           
 boolean isTraversableSet()
           
 boolean isVerticalAlignmentSet()
           
 void setBackground(Color value)
          Overrides the background setting to possibly redo the Bevel/Soft Bevel borders.
 void setCellBorderColor(Color value)
          Overrides the color setting to possibly redo the Bevel/Soft Bevel borders.
 void setCellBorderColorMode(int value)
          Overrides the color mode setting to possibly redo the Bevel/Soft Bevel borders.
 void setCellBorderType(int borderType)
          Sets the CellBorder object for the borderType value on the cell.
 void setForeground(Color value)
          Overrides the foreground setting to possibly redo the Bevel/Soft Bevel borders.
 void setTable(com.klg.jclass.table.beans.LiveTable t)
          Sets the live table component for this cell style.
 
Methods inherited from class com.klg.jclass.table.JCCellStyle
addPropertyChangeListener, copyInto, getBackground, getCellBorder, getCellBorderColor, getCellBorderColorMode, getCellBorderSides, getCellEditor, getCellRenderer, getClipHints, getDataType, getFont, getForeground, getHorizontalAlignment, getParentStyle, getRepeatBackground, getRepeatBackgroundColors, getRepeatForeground, getRepeatForegroundColors, getVerticalAlignment, isEditable, isTraversable, removePropertyChangeListener, setCellBorder, setCellBorderSides, setCellEditor, setCellRenderer, setClipHints, setDataType, setEditable, setFont, setHorizontalAlignment, setParentStyle, setRepeatBackground, setRepeatBackgroundColors, setRepeatForeground, setRepeatForegroundColors, setTraversable, setVerticalAlignment
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BEVEL_BORDER

public static final int BEVEL_BORDER
See Also:
Constant Field Values

SOFT_BEVEL_BORDER

public static final int SOFT_BEVEL_BORDER
See Also:
Constant Field Values
Constructor Detail

JCLiveCellStyle

public JCLiveCellStyle(com.klg.jclass.table.beans.LiveTable table)

JCLiveCellStyle

public JCLiveCellStyle(com.klg.jclass.table.beans.LiveTable table,
                       com.klg.jclass.cell.JCCellRenderer renderer)

JCLiveCellStyle

public JCLiveCellStyle(com.klg.jclass.table.beans.LiveTable table,
                       com.klg.jclass.table.beans.JCLiveCellStyle style)

JCLiveCellStyle

public JCLiveCellStyle(String foreground,
                       String background,
                       String font,
                       boolean editable,
                       boolean traversable,
                       int horizontal_alignment,
                       int vertical_alignment,
                       int border_type,
                       int border_sides,
                       int clip_hints,
                       int cell_border_color_mode,
                       String cell_border_color)
Method Detail

setTable

public void setTable(com.klg.jclass.table.beans.LiveTable t)
Sets the live table component for this cell style.

Parameters:
t -

clone

public Object clone()
Description copied from interface: CellStyleModel
Returns a copy of the style object.

Specified by:
clone in interface CellStyleModel
Overrides:
clone in class JCCellStyle

getCellBorderType

public int getCellBorderType()
Returns the CellBorderModel type for the cell.

Returns:
CellBorderModel for the cell

setCellBorderType

public void setCellBorderType(int borderType)
Sets the CellBorder object for the borderType value on the cell.

Parameters:
borderType -

setCellBorderColor

public void setCellBorderColor(Color value)
Overrides the color setting to possibly redo the Bevel/Soft Bevel borders.

Specified by:
setCellBorderColor in interface CellStyleModel
Overrides:
setCellBorderColor in class JCCellStyle
Parameters:
value -

setCellBorderColorMode

public void setCellBorderColorMode(int value)
Overrides the color mode setting to possibly redo the Bevel/Soft Bevel borders.

Specified by:
setCellBorderColorMode in interface CellStyleModel
Overrides:
setCellBorderColorMode in class JCCellStyle
Parameters:
value -

setForeground

public void setForeground(Color value)
Overrides the foreground setting to possibly redo the Bevel/Soft Bevel borders.

Specified by:
setForeground in interface CellStyleModel
Overrides:
setForeground in class JCCellStyle
Parameters:
value -

setBackground

public void setBackground(Color value)
Overrides the background setting to possibly redo the Bevel/Soft Bevel borders.

Specified by:
setBackground in interface CellStyleModel
Overrides:
setBackground in class JCCellStyle
Parameters:
value -

getSwingCellBorderType

protected int getSwingCellBorderType(Border border)

isEditableSet

public boolean isEditableSet()

isTraversableSet

public boolean isTraversableSet()

isHorizontalAlignmentSet

public boolean isHorizontalAlignmentSet()

isVerticalAlignmentSet

public boolean isVerticalAlignmentSet()

isCellBorderSidesSet

public boolean isCellBorderSidesSet()

isCellBorderTypeSet

public boolean isCellBorderTypeSet()

isClipHintsSet

public boolean isClipHintsSet()

isBackgroundSet

public boolean isBackgroundSet()

isForegroundSet

public boolean isForegroundSet()

isFontSet

public boolean isFontSet()

isCellBorderColorModeSet

public boolean isCellBorderColorModeSet()

isCellBorderColorSet

public boolean isCellBorderColorSet()

Copyright © 2004 Quest Software Inc..
All rights reserved.