|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jbudget.gui.user.UserPreferences
public class UserPreferences
A class for storing user preferences.
| Field Summary | |
|---|---|
private DatesInfoTable.Colors |
colors
An object that stores the colors associated with accounts and expense categories. |
private TableColumnSorter |
columnSorter
An object used for sorting the table columns. |
(package private) java.util.List<Pair<java.lang.Integer,java.lang.Integer>> |
openMonths
A list of months that a user has opened |
private DatesInfoTable.RenderingState |
renderingState
An object that stores the preferences used in rendering the month tables |
private DatesInfoTableModel.State |
tableState
An object that stores the state of the DatesInfoTable. |
private java.awt.Dimension |
transactionWindowSize
Size of the transaction and allocation windows. |
| Constructor Summary | |
|---|---|
UserPreferences()
Creates a new instance of UserPreferences |
|
| Method Summary | |
|---|---|
DatesInfoTable.Colors |
getColors()
|
TableColumnSorter |
getColumnSorter()
Returns the TableColumnSorter object used by the user. |
static UserPreferences |
getInstance(Element element)
|
java.util.List<Pair<java.lang.Integer,java.lang.Integer>> |
getOpenedMonths()
Returns an unmodifaiable list of Month, Year pairs that represent opened months. |
DatesInfoTable.RenderingState |
getRenderingState()
|
DatesInfoTableModel.State |
getTableState()
|
java.awt.Dimension |
getTransactionWindowSize()
Returns the width of the trasnaction window. |
Element |
getXmlElement()
|
void |
setColors(DatesInfoTable.Colors colors)
|
void |
setColumnSorter(TableColumnSorter columnSorter)
Changes the TableColumnSorter object. |
void |
setOpenMonths(java.util.List<org.jbudget.Core.Month> months)
|
void |
setRenderingState(DatesInfoTable.RenderingState renderingState)
|
void |
setTableState(DatesInfoTableModel.State tableState)
|
void |
setTransactionWindowSize(java.awt.Dimension size)
Changes the width of the transaction window stored in the preferences. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private DatesInfoTableModel.State tableState
DatesInfoTableModel.Stateprivate DatesInfoTable.RenderingState renderingState
private DatesInfoTable.Colors colors
java.util.List<Pair<java.lang.Integer,java.lang.Integer>> openMonths
private TableColumnSorter columnSorter
private java.awt.Dimension transactionWindowSize
| Constructor Detail |
|---|
public UserPreferences()
| Method Detail |
|---|
public DatesInfoTableModel.State getTableState()
public void setTableState(DatesInfoTableModel.State tableState)
public DatesInfoTable.RenderingState getRenderingState()
public void setRenderingState(DatesInfoTable.RenderingState renderingState)
public DatesInfoTable.Colors getColors()
public void setColors(DatesInfoTable.Colors colors)
public java.util.List<Pair<java.lang.Integer,java.lang.Integer>> getOpenedMonths()
public void setOpenMonths(java.util.List<org.jbudget.Core.Month> months)
public TableColumnSorter getColumnSorter()
public void setColumnSorter(TableColumnSorter columnSorter)
public java.awt.Dimension getTransactionWindowSize()
public void setTransactionWindowSize(java.awt.Dimension size)
public Element getXmlElement()
public static UserPreferences getInstance(Element element)
throws JDOMException
JDOMException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||