|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.swing.visuals.tableview.HoldColumnSupport
public abstract class HoldColumnSupport
Abstract support class to implement common aspects of HoldInterface.
Field Summary | |
---|---|
int |
base
|
static java.lang.String |
RB_KEY
|
Constructor Summary | |
---|---|
HoldColumnSupport()
|
Method Summary | |
---|---|
int |
calculateViewOffset(int columnModelIndex)
|
abstract int |
convertColumnIndexToView(int columnIndex)
|
void |
doHoldColumn(int viewIndex,
int insertIndex,
boolean left)
|
void |
doReleaseColumn(int columnModelIndex,
int viewIndex)
|
void |
firePropertyChange(java.lang.String string,
java.lang.Boolean boolean1,
java.lang.Boolean boolean2)
|
abstract int |
getColumnCount()
|
java.util.List |
getHeldIndices()
Returns a list of the indices of the columns that are being held. |
java.util.List |
getHeldIndices(int orientation)
Returns a list of the indices of the columns that are being held for the given orientation. |
abstract int |
getModelColumnCount()
|
abstract int |
getModelIndex(int c)
|
void |
hold(int columnModelIndex)
"Holds" the given column using the default orientation. |
void |
hold(int columnModelIndex,
int orientation)
"Holds" the given column for the given orientation. |
boolean |
isHeld(int columnModelIndex)
Returns true if the given columnModelIndex is held, false
otherwise. |
boolean |
isHeld(int columnModelIndex,
int orientation)
Returns true if the given columnModelIndex is held, false
otherwise. |
boolean |
isHoldingAllowed(int orientation)
Returns true if holding for a given orientation is allowed or false otherwise. |
boolean |
isHoldingEnabled()
Returns true is holding is enabled, should return false if holding is not allowed. |
abstract boolean |
isLeftToRight()
|
abstract void |
moveColumn(int held,
int newpos)
|
void |
release(int columnModelIndex)
Releases the given columnModelIndex from being held, so it will
return to its original place in the table. |
void |
releaseAll()
Releases all held columns and returns them to their previous location. |
void |
setHoldingEnabled(boolean enableHolding)
Sets the state of whether holding of indices is enabled or not. |
Field Detail |
---|
public static final java.lang.String RB_KEY
public int base
Constructor Detail |
---|
public HoldColumnSupport()
Method Detail |
---|
public void hold(int columnModelIndex)
LEADING
.
A held column is one that has been made non-scrollable and is thus
always, space permitting, displayed; i.e. it is never scrolled out
of view.
The order in which columns are held controls the order in which they are displayed.
Does nothing if the column is already held.
hold
in interface HoldInterface
columnModelIndex
- the data model index of the column wishing to be heldrelease(int)
,
releaseAll()
public void hold(int columnModelIndex, int orientation)
LEFT
, RIGHT
, LEADING
, or
TRAILING
for the orientation paramter.
A held column is one that has been made non-scrollable and is thus
always, space permitting, displayed; i.e. it is never scrolled out
of view.
The order in which columns are held controls the order in which they are displayed.
Does nothing if the column is already held.
hold
in interface HoldInterface
columnModelIndex
- the data model index of the column wishing to be heldorientation
- the orientation or location the index is to be heldrelease(int)
,
releaseAll()
public void doHoldColumn(int viewIndex, int insertIndex, boolean left)
public abstract int convertColumnIndexToView(int columnIndex)
public abstract int getColumnCount()
public abstract void moveColumn(int held, int newpos)
public void release(int columnModelIndex)
columnModelIndex
from being held, so it will
return to its original place in the table. If the columnModelIndex
is not held, nothing is done.
release
in interface HoldInterface
columnModelIndex
- the column currently held that is wishing to be releasedhold(int)
,
hold(int, int)
,
releaseAll()
public void doReleaseColumn(int columnModelIndex, int viewIndex)
public int calculateViewOffset(int columnModelIndex)
public abstract int getModelIndex(int c)
public abstract int getModelColumnCount()
public void releaseAll()
releaseAll
in interface HoldInterface
hold(int)
,
hold(int, int)
public java.util.List getHeldIndices()
getHeldIndices
in interface HoldInterface
HoldInterface.getHeldIndices(int)
public java.util.List getHeldIndices(int orientation)
getHeldIndices
in interface HoldInterface
orientation
- the orientation of the held indices that are being returned
HoldInterface.getHeldIndices()
public boolean isHeld(int columnModelIndex)
columnModelIndex
is held, false
otherwise.
isHeld
in interface HoldInterface
columnModelIndex
- the data model index of the column
HoldInterface.isHeld(int, int)
public boolean isHeld(int columnModelIndex, int orientation)
columnModelIndex
is held, false
otherwise.
isHeld
in interface HoldInterface
columnModelIndex
- the data model index of the columnorientation
- the orientation or location that the index is being queried for
HoldInterface.isHeld(int)
public boolean isHoldingEnabled()
isHoldingEnabled
in interface HoldInterface
setHoldingEnabled(boolean)
public void setHoldingEnabled(boolean enableHolding)
setHoldingEnabled
in interface HoldInterface
enableHolding
- true to enable holding, false otherwiseisHoldingEnabled()
public boolean isHoldingAllowed(int orientation)
isHoldingAllowed
in interface HoldInterface
orientation
- the orientation being queried about
public abstract boolean isLeftToRight()
public void firePropertyChange(java.lang.String string, java.lang.Boolean boolean1, java.lang.Boolean boolean2)
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |