|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.table.CheckBoxCell
public class CheckBoxCell
Provides a cell view with the appearance and behavior of a checkbox.
LabelCell,
Serialized Form| Field Summary | |
|---|---|
static ImageView |
defaultImageView
|
static ImageView |
selectedImageView
|
| Fields inherited from class com.sas.visuals.GraphicalCheckBox |
|---|
CHECK, CHECK_INVALID, COLOR_CHECK, imageSet, LAMP, LIGHT_BULB, LOCK, MAILBOX, MOON_SUN, offImageView, onImageView, STOP_GO, TRAFFIC_LIGHT, TRASH, XBOX |
| Fields inherited from class com.sas.visuals.ToggleButton |
|---|
contentShift, label, textBounds |
| Fields inherited from class com.sas.visuals.BaseButton |
|---|
actionCommand, actionListenerList, borderPainted, BOTTOM, buttonListener, buttonModel, currentInsets, defaultIcon, disabledIcon, displayTransform, focusGap, focusPainted, gap, hasFocus, horizontalAlignment, horizontalTextAlignment, item, itemListenerList, LEFT, pressedIcon, resizeToFit, RIGHT, rolloverIcon, selectedIcon, text, textPosition, TOP, updateItem, updateText, verticalAlignment, verticalTextAlignment |
| Fields inherited from interface com.sas.table.CellViewInterface |
|---|
FORMATTED_DATA, RAW_DATA |
| Fields inherited from interface com.sas.visuals.Alignment |
|---|
BEGIN, CENTER, END |
| Constructor Summary | |
|---|---|
CheckBoxCell()
|
|
| Method Summary | |
|---|---|
protected void |
buttonModelSelected(ButtonModelInterface btnModel)
Handles change in buttonModel selected property. |
Cell |
getCell()
Returns the Cell this view is associated with. |
java.lang.String |
getFormattedData()
Returns the cell view's data as a formatted string. |
int |
getMinimumHeight(java.awt.Graphics g)
Returns the minimum amount of vertical space needed to display the cell in the given graphics context. |
int |
getMinimumWidth(java.awt.Graphics g)
Returns the minimum amount of horizontal space needed to display the cell in the given graphics context. |
java.lang.Object |
getObjectData()
|
int |
getPreferredHeight(java.awt.Graphics g,
int width)
Returns the preferred amount of vertical space needed to display the cell in the given graphics context. |
int |
getPreferredInputType()
Returns the preferred input type, RAW_DATA or FORMATTED_DATA, of the cell view's data. |
int |
getPreferredOutputType()
Returns the preferred output type, RAW_DATA or FORMATTED_DATA, of the cell view's data. |
int |
getPreferredWidth(java.awt.Graphics g,
int height)
Returns the preferred amount of horizontal space needed to display the cell in the given graphics context. |
protected void |
initValues()
|
boolean |
isPartiallyDisplayed()
Indicates whether the cell's contents are currently displayed by the table view, but also clipped. |
void |
onActiveStateChanged(int oldValue,
int newValue,
java.awt.Point point)
Notifies the view of a change to Cell.activeState. |
void |
paint(java.awt.Graphics g)
Paint the ToggleButton in its current state based on the buttonModel. |
void |
processFocusEvent(java.awt.event.FocusEvent e)
Processes focus events. |
void |
processKeyEvent(java.awt.event.KeyEvent e)
Processes key events. |
void |
processMouseEvent(java.awt.event.MouseEvent e)
Processes mouse events. |
void |
processMouseMotionEvent(java.awt.event.MouseEvent e)
Processes mouse motion events. |
void |
repaint()
|
void |
setCell(Cell c)
Informs the view of the cell that owns it. |
void |
setFormattedData(java.lang.String data)
Sets the cell view's data from a formatted string. |
void |
setObjectData(java.lang.Object object)
|
| Methods inherited from class com.sas.visuals.GraphicalCheckBox |
|---|
getDefaultHeight, getDefaultWidth, getExtendedBeanInfo, getImageSet, paintFocus, setDefaultHeight, setDefaultWidth, setImageSet |
| Methods inherited from class com.sas.visuals.ToggleButton |
|---|
buttonModelArmed, buttonModelPressed, clone, contentShift, getContentShift, getMinimumSize, getSelectionGroup, getSource, getTextBounds, paintBackground, setContentShift, setFont, setHorizontalTextAlignment, setSelected, setSelectionGroup, setSource, setText, setVerticalTextAlignment |
| Methods inherited from interface com.sas.visuals.SelectableInterface |
|---|
getButtonModel, getDisplayTransform, getItem, setDisplayTransform, setItem |
| Methods inherited from interface com.sas.awt.ContainerInterface |
|---|
getComponents, getLayout, invalidate, setLayout, validate |
| Field Detail |
|---|
public static ImageView defaultImageView
public static ImageView selectedImageView
| Constructor Detail |
|---|
public CheckBoxCell()
| Method Detail |
|---|
protected void buttonModelSelected(ButtonModelInterface btnModel)
ToggleButton
buttonModelSelected in class ToggleButtonbtnModel - the Button Model that changed.protected void initValues()
public Cell getCell()
CellViewInterface
getCell in interface CellViewInterfaceCellViewInterface.setCell(com.sas.table.Cell)public java.lang.Object getObjectData()
getObjectData in interface com.sas.lang.ObjectDataInterfacepublic void setObjectData(java.lang.Object object)
setObjectData in interface com.sas.lang.ObjectDataInterfacepublic java.lang.String getFormattedData()
CellViewInterface
getFormattedData in interface CellViewInterfaceCellViewInterface.setFormattedData(java.lang.String)public int getMinimumHeight(java.awt.Graphics g)
CellViewInterface
getMinimumHeight in interface CellViewInterfaceg - The graphics context to measure the cell in.
public int getMinimumWidth(java.awt.Graphics g)
CellViewInterface
getMinimumWidth in interface CellViewInterfaceg - The graphics context to measure the cell in.
public int getPreferredHeight(java.awt.Graphics g,
int width)
CellViewInterface
getPreferredHeight in interface CellViewInterfaceg - The graphics context to measure the cell in.width - The width (in pixels) to constrain by. Specify -1 to not constrain.
public int getPreferredInputType()
CellViewInterface
getPreferredInputType in interface CellViewInterfacepublic int getPreferredOutputType()
CellViewInterface
getPreferredOutputType in interface CellViewInterfacepublic void paint(java.awt.Graphics g)
ToggleButton
paint in interface CellViewInterfacepaint in class ToggleButtong - the Graphics context.VisualInterfaceSupport.paint(com.sas.ComponentInterface, com.sas.awt.VisualInterface, java.awt.Component, java.awt.Graphics)
public int getPreferredWidth(java.awt.Graphics g,
int height)
CellViewInterface
getPreferredWidth in interface CellViewInterfaceg - The graphics context to measure the cell in.height - The height (in pixels) to constrain by. Specify -1 to not constrain.
public void processFocusEvent(java.awt.event.FocusEvent e)
CellViewInterface
processFocusEvent in interface CellViewInterfaceprocessFocusEvent in class java.awt.Componente - The focus event.public void processKeyEvent(java.awt.event.KeyEvent e)
CellViewInterface
processKeyEvent in interface CellViewInterfaceprocessKeyEvent in class java.awt.Componente - The key event.public void processMouseMotionEvent(java.awt.event.MouseEvent e)
CellViewInterface
processMouseMotionEvent in interface CellViewInterfaceprocessMouseMotionEvent in class java.awt.Componente - The mouse motion event.public void processMouseEvent(java.awt.event.MouseEvent e)
CellViewInterface
processMouseEvent in interface CellViewInterfaceprocessMouseEvent in class java.awt.Componente - The mouse event.public void repaint()
repaint in class java.awt.Component
public void onActiveStateChanged(int oldValue,
int newValue,
java.awt.Point point)
CellViewInterface
onActiveStateChanged in interface CellViewInterfaceoldValue - The previous value of Cell.activeState.newValue - The new value of Cell.activeState.point - Optional xy-coordinate (relative to the view's origin) where the
activation was initiated. Could be used to position a text cursor,
for example.public void setCell(Cell c)
CellViewInterface
setCell in interface CellViewInterfacec - Cell instance that owns this view.CellViewInterface.getCell()public void setFormattedData(java.lang.String data)
CellViewInterface
setFormattedData in interface CellViewInterfacedata - The formatted data String.CellViewInterface.getFormattedData()public boolean isPartiallyDisplayed()
isPartiallyDisplayed in interface CellViewInterfacefalse
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||