|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.aelitis.azureus.ui.common.table.impl.TableColumnImpl
public class TableColumnImpl
Table Column definition and modification routines. Implements both the plugin API and the core API.
A column is defined in relation to a table. When one column is in multiple tables of different table ids, each table has it's own column instance
TableColumnManager
Field Summary | |
---|---|
protected AEMonitor |
this_mon
|
Fields inherited from interface org.gudy.azureus2.plugins.ui.tables.TableColumn |
---|
ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_LEAD, ALIGN_TOP, ALIGN_TRAIL, CAT_BYTES, CAT_CONNECTION, CAT_CONTENT, CAT_ESSENTIAL, CAT_PEER_IDENTIFICATION, CAT_PROGRESS, CAT_PROTOCOL, CAT_SETTINGS, CAT_SHARING, CAT_SWARM, CAT_TIME, CAT_TRACKER, INTERVAL_GRAPHIC, INTERVAL_INVALID_ONLY, INTERVAL_LIVE, MENU_STYLE_COLUMN_DATA, MENU_STYLE_HEADER, POSITION_INVISIBLE, POSITION_LAST, TYPE_GRAPHIC, TYPE_TEXT, TYPE_TEXT_ONLY, UD_FORCE_VISIBLE |
Constructor Summary | |
---|---|
TableColumnImpl(java.lang.String tableID,
java.lang.String columnID)
|
Method Summary | |
---|---|
void |
addCellAddedListener(TableCellAddedListener listener)
Adds a listener that triggers when a TableCell that belongs to this column is being added. |
void |
addCellClipboardListener(TableCellClipboardListener listener)
|
void |
addCellDisposeListener(TableCellDisposeListener listener)
Adds a listener that triggers when a TableCell that belongs to this column is being disposed. |
void |
addCellMouseListener(TableCellMouseListener listener)
Adds a listener that triggers when a TableCell that belongs to this column has a mouse event. |
void |
addCellMouseMoveListener(TableCellMouseMoveListener listener)
|
void |
addCellOtherListener(java.lang.String listenerID,
java.lang.Object listener)
|
void |
addCellRefreshListener(TableCellRefreshListener listener)
Adds a listener that triggers when a TableCell that belongs to this column needs refreshing. |
void |
addCellToolTipListener(TableCellToolTipListener listener)
Adds a listener that triggers when a TableCell that belongs to this column has a tooltip action |
void |
addCellVisibilityListener(TableCellVisibilityListener listener)
|
void |
addColumnExtraInfoListener(TableColumnExtraInfoListener listener)
|
TableContextMenuItem |
addContextMenuItem(java.lang.String key)
Adds a Context Menu item to data section of the column |
TableContextMenuItem |
addContextMenuItem(java.lang.String key,
int menuStyle)
Adds a Context Menu item to the column |
void |
addDataSourceType(java.lang.Class<?> cla)
|
void |
addDataSourceTypes(java.lang.Class[] datasourceTypes)
|
void |
addListeners(java.lang.Object listenerObject)
A listener is added for every type of cell listener the supplied object implements |
void |
addRefreshTime(long ms)
|
int |
compare(java.lang.Object arg0,
java.lang.Object arg1)
|
boolean |
doesAutoTooltip()
|
void |
generateDiagnostics(IndentWriter writer)
|
int |
getAlignment()
Returns the alignment of the column |
java.util.List |
getCellAddedListeners()
Retreive all the Cell Added listeners |
java.lang.Object[] |
getCellOtherListeners(java.lang.String listenerID)
|
java.util.List<TableCellRefreshListener> |
getCellRefreshListeners()
Retrieve all the refresh listeners for the cell |
java.lang.String |
getClipboardText(TableCell cell)
|
boolean |
getColumnAdded()
Retrieve whether the column has been added to the TableColumnManager |
java.util.List<TableColumnExtraInfoListener> |
getColumnExtraInfoListeners()
|
int |
getConsecutiveErrCount()
|
TableContextMenuItem[] |
getContextMenuItems(int menuStyle)
|
java.lang.Class |
getForDataSourceType()
|
java.lang.Class[] |
getForDataSourceTypes()
|
java.lang.String |
getIconReference()
|
TableCellInplaceEditorListener |
getInplaceEditorListener()
|
long |
getLastSortValueChange()
|
int |
getMaxWidth()
Gets the maximum width the column can be |
int |
getMinWidth()
Gets the minimum width that the column can be before other columns start collapsing. |
java.lang.String |
getName()
The logical name of the column. |
java.lang.String |
getNameOverride()
Returns the user's column name override if it exists |
int |
getPosition()
Returns the position of the column |
int |
getPreferredWidth()
Gets the preferred width of the coloumn. |
int |
getPreferredWidthMax()
|
int |
getRefreshInterval()
Returns the refresh interval of the column. |
java.lang.String |
getTableID()
Which table the column will be visible in. |
java.lang.String |
getTitleLanguageKey()
Returns the key in the properties bundle that has the title of the column. |
java.lang.String |
getTitleLanguageKey(boolean with_renames)
|
int |
getType()
Returns the type of the contained data. |
boolean |
getUseCoreDataSource()
Retrieve whether a core or plugin object is sent via getDataSource() |
java.lang.Object |
getUserData(java.lang.String key)
|
java.lang.String |
getUserDataString(java.lang.String key)
|
int |
getWidth()
Returns the column's size |
boolean |
handlesDataSourceType(java.lang.Class<?> cla)
|
boolean |
hasCellMouseMoveListener()
|
boolean |
hasCellOtherListeners(java.lang.String listenerID)
|
boolean |
hasCellRefreshListener()
|
boolean |
hasInplaceEditorListener()
|
void |
initialize(int iAlignment,
int iPosition,
int iWidth)
Initialize a group of variables all at once. |
void |
initialize(int iAlignment,
int iPosition,
int iWidth,
int iInterval)
Initialize a group of variables all at once. |
void |
invalidateCell(java.lang.Object data_source)
Invalidates any cells which are linked to the given data source object. |
void |
invalidateCells()
Invalidate all cells in this column. |
void |
invokeCellAddedListeners(TableCell cell)
Send a cellAdded trigger to all listeners stored in TableColumn |
void |
invokeCellDisposeListeners(TableCell cell)
Send a dispose trigger to all listeners stored in TableColumn |
void |
invokeCellMouseListeners(TableCellMouseEvent event)
Send a mouse event to the cell mouse listeners |
void |
invokeCellRefreshListeners(TableCell cell,
boolean fastRefresh)
Send a refresh trigger to all listeners stored in TableColumn |
void |
invokeCellToolTipListeners(TableCellCore cell,
int type)
Send a tool tip event to the tool tip listeners |
void |
invokeCellVisibilityListeners(TableCellCore cell,
int visibility)
Send a visibility event to the cell's visibility listeners |
boolean |
isFirstLoad()
|
boolean |
isMaxWidthAuto()
Retrieve whether the max width is automatically being set. |
boolean |
isMinWidthAuto()
Retrieve whether the min width is automatically being set |
boolean |
isObfusticated()
Returns whether the column's data will be obfusticated when screen capturing (for bug reports, etc). |
boolean |
isPreferredWidthAuto()
Retrieves whether the preferred width is automatically calculated. |
boolean |
isRemoved()
|
boolean |
isSortAscending()
|
boolean |
isSortValueLive()
|
boolean |
isVisible()
Gets the visibility of the column |
void |
loadSettings(java.util.Map mapSettings)
Load width and position settings from config. |
void |
postConfigLoad()
implement this method if you want to be notified when the stored column configuration such as user data or GUI-adjustable properties have been loaded |
void |
preAdd()
|
void |
preConfigSave()
implement this method if you want to be notified when the column configuration is about to be serialized |
void |
remove()
|
void |
removeCellAddedListener(TableCellAddedListener listener)
|
void |
removeCellClipboardListener(TableCellClipboardListener listener)
|
void |
removeCellDisposeListener(TableCellDisposeListener listener)
|
void |
removeCellMouseListener(TableCellMouseListener listener)
Remove a previously added TableCellMouseListener |
void |
removeCellMouseMoveListener(TableCellMouseMoveListener listener)
|
void |
removeCellOtherListener(java.lang.String listenerID,
java.lang.Object l)
|
void |
removeCellRefreshListener(TableCellRefreshListener listener)
Removed a previously added TableCellRefreshListener |
void |
removeCellToolTipListener(TableCellToolTipListener listener)
|
void |
removeCellVisibilityListener(TableCellVisibilityListener listener)
|
void |
removeColumnExtraInfoListener(TableColumnExtraInfoListener listener)
|
void |
removeContextMenuItem(TableContextMenuItem menuItem)
|
void |
removeUserData(java.lang.String key)
|
void |
reset()
|
void |
saveSettings(java.util.Map mapSettings)
Save width and position settings to config. |
void |
setAlignment(int alignment)
Orientation of the columns text and header. |
void |
setAutoTooltip(boolean auto_tooltip)
|
void |
setColumnAdded()
Set the internal flag specifying whether the column has been added to the TableColumnManager. |
void |
setConsecutiveErrCount(int iCount)
|
void |
setDefaultSortAscending(boolean bAscending)
|
void |
setIconReference(java.lang.String iconID,
boolean showOnlyIcon)
|
void |
setInplaceEditorListener(TableCellInplaceEditorListener l)
|
void |
setLastSortValueChange(long lastSortValueChange)
|
void |
setMaxWidth(int maxwidth)
Sets the maximum width that the column can be |
void |
setMaxWidthAuto(boolean automaxwidth)
Sets whether the max width is automatically set. |
void |
setMinimumRequiredUserMode(int mode)
*since 4501 |
void |
setMinWidth(int minwidth)
Sets the minimum width that the column can be before other columns start collapsing. |
void |
setMinWidthAuto(boolean autominwidth)
Sets whether the min width of the column is automatically set. |
void |
setNameOverride(java.lang.String name)
|
void |
setObfustication(boolean hideData)
Sets whether the column's data will be obfusticated during a screen capture (for bug reports, etc). |
void |
setPosition(int position)
Location to put the column. |
void |
setPositionNoShift(int position)
Sets the position of the column without adjusting the other columns. |
void |
setPreferredWidth(int width)
Sets the preferred width of the column. |
void |
setPreferredWidthAuto(boolean auto)
Sets whether the preferred with is automatically calculated. |
void |
setPreferredWidthMax(int maxprefwidth)
|
void |
setRefreshInterval(int interval)
Set how often the cell receives a refresh() trigger |
void |
setSortAscending(boolean bAscending)
|
void |
setSortValueLive(boolean live)
|
void |
setTableID(java.lang.String tableID)
|
void |
setType(int type)
The type of the contained data. Current supported types are long, string, and graphic. |
void |
setUseCoreDataSource(boolean bCoreDataSource)
Changes what TableCellCore.getDataSource() and
TableRowCore.getDataSource() return. |
void |
setUserData(java.lang.String key,
java.lang.Object value)
Associates custom data with the column, usually meant for column-specific settings and stores it across sessions |
void |
setVisible(boolean visible)
Sets the visibility of the column |
void |
setWidth(int realPXWidth)
The column size. |
void |
setWidthLimits(int min,
int max)
Sets the minimum and maximum widths in one call |
void |
setWidthPX(int width)
|
boolean |
showOnlyImage()
|
void |
triggerColumnSizeChange(int diff)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Comparator |
---|
equals |
Field Detail |
---|
protected AEMonitor this_mon
Constructor Detail |
---|
public TableColumnImpl(java.lang.String tableID, java.lang.String columnID)
Method Detail |
---|
public void initialize(int iAlignment, int iPosition, int iWidth, int iInterval)
TableColumn
initialize
in interface TableColumn
iAlignment
- See TableColumn.setAlignment(int)
iPosition
- See TableColumn.setPosition(int)
iWidth
- See TableColumn.setWidth(int)
iInterval
- See TableColumn.setRefreshInterval(int)
public void initialize(int iAlignment, int iPosition, int iWidth)
TableColumn
initialize
in interface TableColumn
iAlignment
- See TableColumn.setAlignment(int)
iPosition
- See TableColumn.setPosition(int)
iWidth
- See TableColumn.setWidth(int)
public java.lang.String getName()
TableColumn
TableManager.createColumn(java.lang.String, java.lang.String)
and can not be changed.
getName
in interface TableColumn
public java.lang.String getNameOverride()
TableColumn
getNameOverride
in interface TableColumn
public void setNameOverride(java.lang.String name)
setNameOverride
in interface TableColumn
public java.lang.String getTableID()
TableColumn
TableManager.createColumn(java.lang.String, java.lang.String)
and can not be changed.
getTableID
in interface TableColumn
TableManager
.TABLE_* constant(s)public void setType(int type)
TableColumn
NOTE: This MUST be set BEFORE adding the column to a table.
The default type is TableColumn.TYPE_TEXT_ONLY
.
setType
in interface TableColumn
type
- TableColumn.TYPE_TEXT
, TableColumn.TYPE_TEXT_ONLY
, TableColumn.TYPE_GRAPHIC
public int getType()
TableColumn
getType
in interface TableColumn
public void setWidth(int realPXWidth)
TableColumn
NOTE: This MUST be set BEFORE adding the column to a table.
setWidth
in interface TableColumn
public void setWidthPX(int width)
setWidthPX
in interface TableColumn
public void triggerColumnSizeChange(int diff)
triggerColumnSizeChange
in interface TableColumnCore
public int getWidth()
TableColumn
getWidth
in interface TableColumn
public void setPosition(int position)
TableColumn
TableManager.addColumn(org.gudy.azureus2.plugins.ui.tables.TableColumn)
), the supplied value will be used
as the default position. If the user has moved the column previously,
the new position will be used, and the default position will be ignored.
This function cannot be called after you have added the column to a UI
table. In the future, setting the position after adding the column to the
UI table will result in the column being moved.
setPosition
in interface TableColumn
position
- Column Number (0 based), POSITION_INVISIBLE or POSITION_LASTpublic int getPosition()
TableColumn
getPosition
in interface TableColumn
public void setAlignment(int alignment)
TableColumn
NOTE: This MUST be set BEFORE adding the column to a table.
setAlignment
in interface TableColumn
alignment
- ALIGN_TRAIL, ALIGN_LEAD, or ALIGN_CENTERpublic int getAlignment()
TableColumn
getAlignment
in interface TableColumn
public void addCellRefreshListener(TableCellRefreshListener listener)
TableColumn
addCellRefreshListener
in interface TableColumn
listener
- Listener Object to be called when refresh is needed.public java.util.List<TableCellRefreshListener> getCellRefreshListeners()
TableColumnCore
getCellRefreshListeners
in interface TableColumnCore
public void removeCellRefreshListener(TableCellRefreshListener listener)
TableColumn
removeCellRefreshListener
in interface TableColumn
listener
- Previously added listenerpublic boolean hasCellRefreshListener()
hasCellRefreshListener
in interface TableColumnCore
public void setRefreshInterval(int interval)
TableColumn
setRefreshInterval
in interface TableColumn
interval
- INTERVAL_GRAPHIC, INTERVAL_LIVE, INTERVAL_INVALID_ONLY
constants, or an integer based on the user-configurable
"GUI refresh interval". For example, specifying 4 will
result in a refresh trigger every 4 "GUI refresh intervals"public int getRefreshInterval()
TableColumn
getRefreshInterval
in interface TableColumn
public void addCellAddedListener(TableCellAddedListener listener)
TableColumn
addCellAddedListener
in interface TableColumn
listener
- Listener Object to be called when refresh is needed.public void addCellOtherListener(java.lang.String listenerID, java.lang.Object listener)
addCellOtherListener
in interface TableColumnCore
public void removeCellOtherListener(java.lang.String listenerID, java.lang.Object l)
removeCellOtherListener
in interface TableColumnCore
public java.lang.Object[] getCellOtherListeners(java.lang.String listenerID)
getCellOtherListeners
in interface TableColumnCore
public boolean hasCellOtherListeners(java.lang.String listenerID)
hasCellOtherListeners
in interface TableColumnCore
public java.util.List getCellAddedListeners()
TableColumnCore
getCellAddedListeners
in interface TableColumnCore
public void removeCellAddedListener(TableCellAddedListener listener)
removeCellAddedListener
in interface TableColumn
public void addCellDisposeListener(TableCellDisposeListener listener)
TableColumn
addCellDisposeListener
in interface TableColumn
listener
- Listener Object to be called when refresh is needed.public void removeCellDisposeListener(TableCellDisposeListener listener)
removeCellDisposeListener
in interface TableColumn
public void addCellToolTipListener(TableCellToolTipListener listener)
TableColumn
addCellToolTipListener
in interface TableColumn
listener
- Listener Object to be called when refresh is needed.public void removeCellToolTipListener(TableCellToolTipListener listener)
removeCellToolTipListener
in interface TableColumn
public void addCellMouseListener(TableCellMouseListener listener)
TableColumn
addCellMouseListener
in interface TableColumn
public void removeCellMouseListener(TableCellMouseListener listener)
TableColumn
removeCellMouseListener
in interface TableColumn
listener
- Previously added listenerpublic boolean hasCellMouseMoveListener()
hasCellMouseMoveListener
in interface TableColumnCore
public void addCellMouseMoveListener(TableCellMouseMoveListener listener)
public void removeCellMouseMoveListener(TableCellMouseMoveListener listener)
public void addCellClipboardListener(TableCellClipboardListener listener)
public void removeCellClipboardListener(TableCellClipboardListener listener)
public void addCellVisibilityListener(TableCellVisibilityListener listener)
public void removeCellVisibilityListener(TableCellVisibilityListener listener)
public java.util.List<TableColumnExtraInfoListener> getColumnExtraInfoListeners()
getColumnExtraInfoListeners
in interface TableColumnCore
public void addColumnExtraInfoListener(TableColumnExtraInfoListener listener)
addColumnExtraInfoListener
in interface TableColumn
public void removeColumnExtraInfoListener(TableColumnExtraInfoListener listener)
removeColumnExtraInfoListener
in interface TableColumn
public void invalidateCells()
TableColumn
invalidateCells
in interface TableColumn
public void invalidateCell(java.lang.Object data_source)
TableColumn
invalidateCell
in interface TableColumn
public void addListeners(java.lang.Object listenerObject)
TableColumn
addListeners
in interface TableColumn
listenerObject
- Object implementing some cell listeneterspublic void setColumnAdded()
TableColumnCore
setColumnAdded
in interface TableColumnCore
public boolean getColumnAdded()
TableColumnCore
getColumnAdded
in interface TableColumnCore
public void setUseCoreDataSource(boolean bCoreDataSource)
TableColumnCore
TableCellCore.getDataSource()
and
TableRowCore.getDataSource()
return.
setUseCoreDataSource
in interface TableColumnCore
bCoreDataSource
- true - returns a core objectpublic boolean getUseCoreDataSource()
TableColumnCore
getUseCoreDataSource
in interface TableColumnCore
public void invokeCellRefreshListeners(TableCell cell, boolean fastRefresh) throws java.lang.Throwable
TableColumnCore
invokeCellRefreshListeners
in interface TableColumnCore
cell
- the cell is being refreshed
java.lang.Throwable
public void invokeCellAddedListeners(TableCell cell)
TableColumnCore
invokeCellAddedListeners
in interface TableColumnCore
cell
- the cell is being addedpublic void invokeCellDisposeListeners(TableCell cell)
TableColumnCore
invokeCellDisposeListeners
in interface TableColumnCore
cell
- the cell is being disposedpublic java.lang.String getClipboardText(TableCell cell)
getClipboardText
in interface TableColumnCore
public void invokeCellToolTipListeners(TableCellCore cell, int type)
TableColumnCore
invokeCellToolTipListeners
in interface TableColumnCore
cell
- Cell to get the tool tip eventpublic void invokeCellMouseListeners(TableCellMouseEvent event)
TableColumnCore
invokeCellMouseListeners
in interface TableColumnCore
event
- Mouse Event to sendpublic void invokeCellVisibilityListeners(TableCellCore cell, int visibility)
TableColumnCore
invokeCellVisibilityListeners
in interface TableColumnCore
visibility
- Visibility statepublic void setPositionNoShift(int position)
TableColumnCore
setPositionNoShift
in interface TableColumnCore
position
- new position (0 based)TableColumnManager.ensureIntegrity()
public java.lang.Object getUserData(java.lang.String key)
getUserData
in interface TableColumn
public java.lang.String getUserDataString(java.lang.String key)
getUserDataString
in interface TableColumn
public void setUserData(java.lang.String key, java.lang.Object value)
TableColumn
setUserData
in interface TableColumn
key
- the key under which the value will be stored and serializedvalue
- should be BEncodable, otherwise it won't be serializedpublic void removeUserData(java.lang.String key)
removeUserData
in interface TableColumn
public void remove()
remove
in interface TableColumn
public boolean isRemoved()
isRemoved
in interface TableColumnCore
public final void loadSettings(java.util.Map mapSettings)
TableColumnCore
loadSettings
in interface TableColumnCore
mapSettings
- map to place settings intopublic boolean isFirstLoad()
public void postConfigLoad()
TableColumn
postConfigLoad
in interface TableColumn
public void preAdd()
public void preConfigSave()
TableColumn
preConfigSave
in interface TableColumn
public final void saveSettings(java.util.Map mapSettings)
TableColumnCore
saveSettings
in interface TableColumnCore
mapSettings
- map to place settings intopublic java.lang.String getTitleLanguageKey()
TableColumnCore
getTitleLanguageKey
in interface TableColumnCore
public java.lang.String getTitleLanguageKey(boolean with_renames)
getTitleLanguageKey
in interface TableColumnCore
public int getConsecutiveErrCount()
getConsecutiveErrCount
in interface TableColumnCore
public void setConsecutiveErrCount(int iCount)
setConsecutiveErrCount
in interface TableColumnCore
iCount
- # of consecutive errorspublic void removeContextMenuItem(TableContextMenuItem menuItem)
removeContextMenuItem
in interface TableColumnCore
public TableContextMenuItem addContextMenuItem(java.lang.String key)
TableColumn
addContextMenuItem
in interface TableColumn
key
- ID of the context menu, which is also used to retreieve
the textual name from the plugin language file.
public TableContextMenuItem addContextMenuItem(java.lang.String key, int menuStyle)
TableColumn
addContextMenuItem
in interface TableColumn
key
- ID of the context menu, which is also used to retreieve
the textual name from the plugin language file.menuStyle
- See MENU_STYLE_* constants (header or data)
public TableContextMenuItem[] getContextMenuItems(int menuStyle)
getContextMenuItems
in interface TableColumnCore
public boolean isObfusticated()
TableColumn
Currently not fully implemented for plugins
isObfusticated
in interface TableColumn
public void setObfustication(boolean hideData)
TableColumn
setObfustication
in interface TableColumn
hideData
- new state of obfusticationpublic long getLastSortValueChange()
getLastSortValueChange
in interface TableColumnCore
public void setLastSortValueChange(long lastSortValueChange)
setLastSortValueChange
in interface TableColumnCore
public boolean isSortValueLive()
isSortValueLive
in interface TableColumnCore
public void setSortValueLive(boolean live)
setSortValueLive
in interface TableColumnCore
public void addRefreshTime(long ms)
addRefreshTime
in interface TableColumnCore
public void generateDiagnostics(IndentWriter writer)
generateDiagnostics
in interface TableColumnCore
public void setTableID(java.lang.String tableID)
setTableID
in interface TableColumnCore
public int compare(java.lang.Object arg0, java.lang.Object arg1)
compare
in interface java.util.Comparator
public void setSortAscending(boolean bAscending)
setSortAscending
in interface TableColumnCore
bAscending
- The bAscending to set.public boolean isSortAscending()
isSortAscending
in interface TableColumnCore
public void setDefaultSortAscending(boolean bAscending)
setDefaultSortAscending
in interface TableColumnCore
public int getMinWidth()
TableColumn
If not set, the width specified on initialize will be the minimum width
Not all UIs may have this feature implemented.
getMinWidth
in interface TableColumn
public void setMinWidth(int minwidth)
TableColumn
If not set, the width specified on initialize will be the minimum width
Not all UIs may have this feature implemented.
setMinWidth
in interface TableColumn
minwidth
- new minumum widthpublic int getMaxWidth()
TableColumn
Not all UIs may have this feature implemented.
getMaxWidth
in interface TableColumn
public void setMaxWidth(int maxwidth)
TableColumn
Not all UIs may have this feature implemented.
setMaxWidth
in interface TableColumn
maxwidth
- new maximum widthpublic void setWidthLimits(int min, int max)
TableColumn
Not all UIs may have this min and max limits implemented.
setWidthLimits
in interface TableColumn
min
- New minimum column widthmax
- New maximum column widthpublic boolean isVisible()
TableColumn
Not all UIs may have this feature implemented.
isVisible
in interface TableColumn
public void setVisible(boolean visible)
TableColumn
setVisible
in interface TableColumn
visible
- New visibility statepublic boolean isMaxWidthAuto()
TableColumn
isMaxWidthAuto
in interface TableColumn
public void setMaxWidthAuto(boolean automaxwidth)
TableColumn
setMaxWidthAuto
in interface TableColumn
public boolean isMinWidthAuto()
TableColumn
isMinWidthAuto
in interface TableColumn
public void setMinWidthAuto(boolean autominwidth)
TableColumn
setMinWidthAuto
in interface TableColumn
public int getPreferredWidth()
TableColumn
getPreferredWidth
in interface TableColumn
public void setPreferredWidthAuto(boolean auto)
TableColumn
setPreferredWidthAuto
in interface TableColumn
auto
- Preferred Width Auto Statepublic boolean isPreferredWidthAuto()
TableColumn
isPreferredWidthAuto
in interface TableColumn
public void setPreferredWidthMax(int maxprefwidth)
public int getPreferredWidthMax()
public void setPreferredWidth(int width)
TableColumn
setPreferredWidth
in interface TableColumn
width
- New preferred widthpublic void setAutoTooltip(boolean auto_tooltip)
setAutoTooltip
in interface TableColumnCore
public boolean doesAutoTooltip()
doesAutoTooltip
in interface TableColumnCore
public void setInplaceEditorListener(TableCellInplaceEditorListener l)
setInplaceEditorListener
in interface TableColumnCore
public boolean hasInplaceEditorListener()
hasInplaceEditorListener
in interface TableColumnCore
public TableCellInplaceEditorListener getInplaceEditorListener()
getInplaceEditorListener
in interface TableColumnCore
public java.lang.Class[] getForDataSourceTypes()
public void reset()
reset
in interface TableColumnCore
public void addDataSourceType(java.lang.Class<?> cla)
addDataSourceType
in interface TableColumnCore
public void addDataSourceTypes(java.lang.Class[] datasourceTypes)
public boolean handlesDataSourceType(java.lang.Class<?> cla)
handlesDataSourceType
in interface TableColumnCore
public java.lang.Class getForDataSourceType()
getForDataSourceType
in interface TableColumn
public void setIconReference(java.lang.String iconID, boolean showOnlyIcon)
setIconReference
in interface TableColumn
public java.lang.String getIconReference()
getIconReference
in interface TableColumn
public void setMinimumRequiredUserMode(int mode)
TableColumn
setMinimumRequiredUserMode
in interface TableColumn
mode
- from Parameter. constantspublic boolean showOnlyImage()
showOnlyImage
in interface TableColumnCore
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |