|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ceryle.ui.xnode.XNodeRevisionManagerUtils
public class XNodeRevisionManagerUtils
An utility class providing a set of common utility methods for both the XNodeRevisionManagerDialog and XNodeRevisionManagerPanel. This also maintains the state of the three limit flags: count, space, and age.
| Field Summary | |
|---|---|
protected JButton |
btn_all
|
protected JButton |
btn_delete
|
protected JButton |
btn_none
|
protected JButton |
btn_select
|
protected int |
m_daylimit
|
protected boolean |
m_selByAge
|
protected JLabel |
m_summary
|
protected PropertyManager |
pm
|
| Constructor Summary | |
|---|---|
XNodeRevisionManagerUtils(RevisionTableModel tablemodel)
|
|
| Method Summary | |
|---|---|
protected void |
complyWithChecked()
Sets the state and visibility of various buttons and messages based on the revision count and selection. |
protected int |
deleteSelected(XNodeCollection xnc,
boolean confirm)
After user confirmation, deletes the selected revisions. |
Clock |
getClock()
Returns the clock used for timestamp parsing and display. |
int |
getDayLimit()
Returns the current day limit. |
int |
getHighlightCount()
|
protected List |
getXNodeParents(List revisions)
Return the List of XNodes for the List of XNodeRevisions. |
boolean |
hasHighlighted()
|
boolean |
isHighlighted(int row)
Returns true if the revision is over one of the three limits. |
boolean |
isSelectByAge()
Returns true if select by age is active. |
boolean |
isSelectByCount()
Returns true if select by count is active. |
boolean |
isSelectBySpace()
Returns true if select by space is active. |
protected boolean |
overCountLimit(int row)
Returns true if the revision at the specified row is over the count limit. |
protected boolean |
overSpaceLimit(int row)
Returns true if the revision at the specified row is over the space limit. |
void |
saveProperties()
Save dialog settings (state of UI check boxes). |
void |
setDayLimit(int limit)
Sets the day limit. |
void |
setSelectByAge(boolean enable)
Enables or disabled the select by age mode. |
void |
setSelectByCount(boolean enable)
Enables or disabled the select by count mode. |
void |
setSelectBySpace(boolean enable)
Enables or disabled the select by space mode. |
protected void |
setSummaryText(int count,
int size,
int highlighted,
int selected)
Set the summary text based on the revision count, the total size (in characters), and the number of revisions that have been highlighted (via the limits) and selected (using the checkboxes). |
void |
setUI(JButton selectButton,
JButton allButton,
JButton noneButton,
JButton deleteButton,
JLabel summaryText)
Sets the buttons that are to react to changes in the model. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected boolean m_selByAge
protected int m_daylimit
protected JButton btn_select
protected JButton btn_all
protected JButton btn_none
protected JButton btn_delete
protected JLabel m_summary
protected PropertyManager pm
| Constructor Detail |
|---|
public XNodeRevisionManagerUtils(RevisionTableModel tablemodel)
| Method Detail |
|---|
public void setUI(JButton selectButton,
JButton allButton,
JButton noneButton,
JButton deleteButton,
JLabel summaryText)
public Clock getClock()
protected int deleteSelected(XNodeCollection xnc,
boolean confirm)
xnc - the XNodeCollection to which the changes are written.confirm - if true a confirmation dialog is displayed.
protected List getXNodeParents(List revisions)
protected boolean overCountLimit(int row)
protected boolean overSpaceLimit(int row)
public boolean isSelectByCount()
public void setSelectByCount(boolean enable)
public boolean isSelectBySpace()
public void setSelectBySpace(boolean enable)
public boolean isSelectByAge()
public void setSelectByAge(boolean enable)
public int getDayLimit()
public void setDayLimit(int limit)
public boolean hasHighlighted()
public int getHighlightCount()
public boolean isHighlighted(int row)
protected void complyWithChecked()
protected void setSummaryText(int count,
int size,
int highlighted,
int selected)
public void saveProperties()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||