|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
adams.gui.core.BasePanel
adams.gui.tools.AbstractManagementPanel<T>
adams.gui.tools.AbstractManagementPanelWithProperties<EmailContact>
adams.gui.tools.EmailAddressBookPanel
public class EmailAddressBookPanel
Panel for managing email addresses.
| Nested Class Summary | |
|---|---|
static class |
EmailAddressBookPanel.TableModel
A simple table model for displaying the contacts. |
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
protected BaseTextArea |
m_TextAddress
the address. |
protected JTextField |
m_TextEmail
the email address. |
protected JTextField |
m_TextFirstName
the first name. |
protected JTextField |
m_TextLastName
the last name. |
protected BaseTextArea |
m_TextNote
the note. |
protected BaseTextArea |
m_TextPhone
the phone number. |
| Fields inherited from class adams.gui.tools.AbstractManagementPanelWithProperties |
|---|
m_Properties |
| Fields inherited from class adams.gui.tools.AbstractManagementPanel |
|---|
m_ButtonAdd, m_ButtonClear, m_ButtonLoad, m_ButtonRefresh, m_ButtonRemove, m_ButtonUpdate, m_FileChooser, m_ModelValues, m_PanelSearch, m_PanelTable, m_PanelValues, m_TableValues |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
EmailAddressBookPanel()
|
|
| Method Summary | |
|---|---|
protected void |
addFields(ParameterPanelWithButtons panel)
For adding all the fields. |
protected boolean |
canAddObject()
Returns whether all the required fields are set to add the object. |
protected boolean |
canClearFields()
Returns whether the fields can be cleared, i.e., if there is any input. |
protected void |
clear()
Resets the input fields. |
protected String |
createKey(EmailContact value)
Creates the key for storing the object in the properties. |
protected EmailContact |
fieldsToObject()
Turns the fields into an object. |
protected EmailContact |
fromString(String s)
Turns the string obtained from the properties file into an object. |
protected Class |
getManagedClass()
Returns the class that is being managed. |
protected Properties |
getProperties()
Returns the properties to work with. |
protected boolean |
isReadOnly()
Returns whether modified data cannot be stored. |
protected AbstractManagementTableModel<EmailContact> |
newTableModel()
Returns an instance of a new table model. |
protected void |
objectToFields(EmailContact value)
Updates the field with the specified object. |
protected boolean |
storeProperties()
Saves the properties on disk. |
protected String |
toString(EmailContact value)
Turns the object into a string to be stored in the properties file. |
| Methods inherited from class adams.gui.tools.AbstractManagementPanelWithProperties |
|---|
exists, loadAll, remove, store |
| Methods inherited from class adams.gui.tools.AbstractManagementPanel |
|---|
addActionListener, addChangeListener, addDocumentListener, addListener, addObject, cleanUp, createPopupMenu, finishInit, getFileChooser, getID, getItemName, initGUI, loadValue, refresh, removeObjects, update, updateObject |
| Methods inherited from class adams.gui.core.BasePanel |
|---|
afterHide, afterShow, beforeHide, beforeShow, closeParent, getParentChild, getParentDialog, getParentFrame, getParentInternalFrame, getParentTitle, initialize, main, setParentTitle, setVisible |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected JTextField m_TextFirstName
protected JTextField m_TextLastName
protected JTextField m_TextEmail
protected BaseTextArea m_TextPhone
protected BaseTextArea m_TextAddress
protected BaseTextArea m_TextNote
| Constructor Detail |
|---|
public EmailAddressBookPanel()
| Method Detail |
|---|
protected void addFields(ParameterPanelWithButtons panel)
addFields in class AbstractManagementPanel<EmailContact>panel - the panel to add the fields toprotected Properties getProperties()
getProperties in class AbstractManagementPanelWithProperties<EmailContact>protected boolean storeProperties()
storeProperties in class AbstractManagementPanelWithProperties<EmailContact>protected String createKey(EmailContact value)
createKey in class AbstractManagementPanelWithProperties<EmailContact>value - the object to create the key from
protected EmailContact fromString(String s)
fromString in class AbstractManagementPanelWithProperties<EmailContact>s - the string to parse
protected String toString(EmailContact value)
toString in class AbstractManagementPanelWithProperties<EmailContact>value - the object to convert
protected AbstractManagementTableModel<EmailContact> newTableModel()
newTableModel in class AbstractManagementPanel<EmailContact>protected Class getManagedClass()
getManagedClass in class AbstractManagementPanel<EmailContact>protected void clear()
clear in class AbstractManagementPanel<EmailContact>protected EmailContact fieldsToObject()
fieldsToObject in class AbstractManagementPanel<EmailContact>protected void objectToFields(EmailContact value)
objectToFields in class AbstractManagementPanel<EmailContact>value - the object to displayprotected boolean canClearFields()
canClearFields in class AbstractManagementPanel<EmailContact>protected boolean isReadOnly()
isReadOnly in class AbstractManagementPanel<EmailContact>protected boolean canAddObject()
canAddObject in class AbstractManagementPanel<EmailContact>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||