|
JComponentPack 1.5.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SizeModel
| Method Summary | |
|---|---|
void |
addSizeModelListener(SizeModelListener l)
Adds a listener to the list that is notified each time a change to the size model occurs. |
void |
addSizes(int from,
int to,
int size)
Adds the size for the specified index area. |
void |
addSizes(int from,
int to,
int[] sizes)
Adds the size for the specified index area. |
void |
addUndoableEditListener(UndoableEditListener l)
Registers the given observer to begin receiving notifications when undoable edits are made to the model. |
int |
getCount()
Returns the count for this size model. |
int |
getIndex(int position)
Returns the index at the specified position. |
EventListener[] |
getListeners(Class listenerType)
Returns an array of all the objects currently registered as FooListeners
upon this AbstractTableModel. |
String |
getName()
Returns the name for this size model. |
int |
getPosition(int index)
Return the position for the specified index. |
int |
getSize()
Returns the size for this size model. |
int |
getSize(int index)
Returns the size for ths specified index. |
boolean |
getSizeIsAdjusting(int index)
Returns the size adjusting property for the specified index. |
SizeModelListener[] |
getSizeModelListeners()
Returns an array of all the size model listeners registered on this model. |
int[] |
getSizes(int from,
int to)
Returns the size for the specified index area. |
UndoableEditListener[] |
getUndoableEditListeners()
Returns an array of all the undoable edit listeners registered on this model. |
boolean |
isFixedSize()
Returns whether the size in this size model is fixed. |
boolean |
isVisible(int index)
Returns the size visible property for the specified index. |
void |
removeSizeModelListener(SizeModelListener l)
Removes a listener from the list that is notified each time a change to the size model occurs. |
void |
removeSizes(int from,
int to)
Removes the sizes for the specified index. |
void |
removeUndoableEditListener(UndoableEditListener l)
Unregisters the given observer from the notification list so it will no longer receive updates. |
void |
setSize(int size)
Sets the size for this size model. |
void |
setSize(int index,
int size)
Sets the size for the specified index. |
void |
setSizeIsAdjusting(int index,
boolean isAdjusting)
Sets the size adjusting property for the specified index. |
void |
setSizes(int from,
int to,
int size)
Sets the size for the specified index area. |
void |
setSizes(int from,
int to,
int[] sizes)
Sets the size for the specified index area. |
void |
setVisible(int index,
boolean visible)
Sets the size visible property for the specified index. |
| Method Detail |
|---|
String getName()
int getCount()
int getIndex(int position)
position - the the specified position
int getPosition(int index)
index - the specified index
void setSize(int size)
size - the sizegetSize()int getSize()
setSize(int)
void setSize(int index,
int size)
index - the indexsize - the sizegetSize()int getSize(int index)
index - the index
setSize(int)
void setSizes(int from,
int to,
int size)
from - the from indexto - the to indexsize - the size
void setSizes(int from,
int to,
int[] sizes)
from - the from indexto - the to indexsizes - the size
int[] getSizes(int from,
int to)
void addSizes(int from,
int to,
int size)
from - the from indexto - the to indexsize - the size
void addSizes(int from,
int to,
int[] sizes)
from - the from indexto - the to indexsizes - the size
void removeSizes(int from,
int to)
from - the from indexto - the to index
void setSizeIsAdjusting(int index,
boolean isAdjusting)
index - the specified indexisAdjusting - the adjusting propertygetSizeIsAdjusting(int)boolean getSizeIsAdjusting(int index)
index - the specified indexsetSizeIsAdjusting(int, boolean)
void setVisible(int index,
boolean visible)
index - the specified indexvisible - the visible propertyisVisible(int)boolean isVisible(int index)
index - the specified indexsetVisible(int, boolean)boolean isFixedSize()
void addSizeModelListener(SizeModelListener l)
l - the SizeModelListenervoid removeSizeModelListener(SizeModelListener l)
l - the SizeModelListenerSizeModelListener[] getSizeModelListeners()
SizeModelListeners
or an empty
array if no size model listeners are currently registeredaddSizeModelListener(com.zfqjava.swing.event.SizeModelListener),
removeSizeModelListener(com.zfqjava.swing.event.SizeModelListener)void addUndoableEditListener(UndoableEditListener l)
l - the observer to registerUndoableEditEventvoid removeUndoableEditListener(UndoableEditListener l)
l - the observer to registerUndoableEditEventUndoableEditListener[] getUndoableEditListeners()
UndoableEditListeners
or an empty array if no undoable edit listeners are
currently registeredaddUndoableEditListener(javax.swing.event.UndoableEditListener),
removeUndoableEditListener(javax.swing.event.UndoableEditListener)EventListener[] getListeners(Class listenerType)
FooListeners
upon this AbstractTableModel.
FooListeners are registered using the
addFooListener method.
You can specify the listenerType argument
with a class literal,
such as
FooListener.class.
For example, you can query a
model m
for its table model listeners with the following code:
TableModelListener[] tmls = (TableModelListener[])(m.getListeners(TableModelListener.class));If no such listeners exist, this method returns an empty array.
listenerType - the type of listeners requested; this parameter
should specify an interface that descends from
java.util.EventListener
FooListeners on this component,
or an empty array if no such
listeners have been added
ClassCastException - if listenerType
doesn't specify a class or interface that implements
java.util.EventListener
|
JComponentPack 1.5.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||