|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.AbstractCellEditor
com.jidesoft.grid.AutoFilterTableHeaderEditor
public class AutoFilterTableHeaderEditor
Header cell editor for AutoFilterTableHeader.
| Field Summary | |
|---|---|
protected AutoFilterBox |
_box
|
| Fields inherited from class javax.swing.AbstractCellEditor |
|---|
changeEvent, listenerList |
| Fields inherited from interface javax.swing.SwingConstants |
|---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
| Constructor Summary | |
|---|---|
AutoFilterTableHeaderEditor()
|
|
| Method Summary | |
|---|---|
protected int |
checkHorizontalKey(int key,
String exception)
Verify that the key argument is a legal value for the horizontalAlignment and horizontalTextPosition properties. |
protected int |
checkVerticalKey(int key,
String exception)
Verify that the key argument is a legal value for the vertical properties. |
protected AutoFilterBox |
createAutoFilterBox()
Creates the AutoFilterBox. |
protected void |
customizeAutoFilterBox(AutoFilterBox autoFilterBox)
|
Object |
getCellEditorValue()
Gets the editor value. |
int |
getHorizontalAlignment()
Returns the horizontal alignment of the icon and text. |
Component |
getTableCellEditorComponent(JTable table,
Object value,
boolean isSelected,
int row,
int column)
|
int |
getVerticalAlignment()
Returns the vertical alignment of the text and icon. |
void |
setHorizontalAlignment(int alignment)
Sets the horizontal alignment of the icon and text. |
void |
setVerticalAlignment(int alignment)
Sets the vertical alignment of the icon and text. |
| Methods inherited from class javax.swing.AbstractCellEditor |
|---|
addCellEditorListener, cancelCellEditing, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditing |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.swing.CellEditor |
|---|
addCellEditorListener, cancelCellEditing, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditing |
| Field Detail |
|---|
protected AutoFilterBox _box
| Constructor Detail |
|---|
public AutoFilterTableHeaderEditor()
| Method Detail |
|---|
protected AutoFilterBox createAutoFilterBox()
AutoFilterBox.
AutoFilterBox.
public Component getTableCellEditorComponent(JTable table,
Object value,
boolean isSelected,
int row,
int column)
getTableCellEditorComponent in interface TableCellEditorprotected void customizeAutoFilterBox(AutoFilterBox autoFilterBox)
public Object getCellEditorValue()
getCellEditorValue in interface CellEditorpublic int getVerticalAlignment()
verticalAlignment property, one of the following values: SwingConstants.CENTER (the default) SwingConstants.TOP SwingConstants.BOTTOM
public void setVerticalAlignment(int alignment)
alignment - one of the following values: SwingConstants.CENTER (the default) SwingConstants.TOP SwingConstants.BOTTOM IllegalArgumentException - if the alignment is not one of the legal values listed abovepublic int getHorizontalAlignment()
AbstractButton's default is SwingConstants.CENTER, but subclasses such as JCheckBox may use a different default.
horizontalAlignment property, one of the following values: SwingConstants.RIGHT SwingConstants.LEFT SwingConstants.CENTER SwingConstants.LEADING SwingConstants.TRAILING public void setHorizontalAlignment(int alignment)
AbstractButton's default is SwingConstants.CENTER, but subclasses such as JCheckBox may use a different default.
alignment - the alignment value, one of the following values: SwingConstants.RIGHT
SwingConstants.LEFT SwingConstants.CENTER SwingConstants.LEADING SwingConstants.TRAILING IllegalArgumentException - if the alignment is not one of the valid values
protected int checkHorizontalKey(int key,
String exception)
key argument is a legal value for the horizontalAlignment and horizontalTextPosition properties. Valid values are: SwingConstants.RIGHT SwingConstants.LEFT SwingConstants.CENTER SwingConstants.LEADING SwingConstants.TRAILING
key - the property value to checkexception - the message to use in the IllegalArgumentException that is thrown for an invalid value
IllegalArgumentException - if key is not one of the legal values listed abovesetHorizontalAlignment(int)
protected int checkVerticalKey(int key,
String exception)
key argument is a legal value for the vertical properties. Valid values are: SwingConstants.CENTER SwingConstants.TOP SwingConstants.BOTTOM
key - the property value to checkexception - the message to use in the IllegalArgumentException that is thrown for an invalid value
IllegalArgumentException - if key is not one of the legal values listed above
|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||