jmri.web.server
Class WebServerPreferencesPanel

Show UML class diagram
java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JPanel
                  extended by jmri.web.server.WebServerPreferencesPanel
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, EventListener, Accessible, ListDataListener, PreferencesPanel

public class WebServerPreferencesPanel
extends JPanel
implements ListDataListener, PreferencesPanel

See Also:
Serialized Form

Nested Class Summary
 
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
(package private)  JButton cancelB
           
(package private)  JSpinner clickDelaySpinner
           
(package private)  EditableList disallowedFrames
           
(package private)  boolean enableSave
           
(package private)  Border lineBorder
           
(package private) static org.slf4j.Logger log
           
(package private)  JFrame parentFrame
           
(package private)  JTextField port
           
(package private)  WebServerPreferences preferences
           
(package private)  JTextField railroadName
           
(package private)  JCheckBox rebuildIndexCB
           
(package private)  JSpinner refreshDelaySpinner
           
(package private)  JButton saveB
           
(package private)  JCheckBox useAjaxCB
           
 
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
WebServerPreferencesPanel()
           
WebServerPreferencesPanel(JFrame f)
           
 
Method Summary
protected  void applyValues()
          Update the singleton instance of prefs, then mark (isDirty) that the values have changed and needs to save to xml file.
protected  void cancelValues()
           
 void contentsChanged(ListDataEvent lde)
           
 void enableSave()
          Show the save and cancel buttons if displayed in its own frame.
 String getLabelKey()
          Text displayed above the preferences panel This label is only displayed if the preferences panel is in a tabbed set of preferences.
 JComponent getPreferencesComponent()
          Get the preferences component for display
 String getPreferencesItem()
          Get the Preferences Item identifier.
 String getPreferencesItemText()
          Get the text for the Preferences Item in the preferences window list of preferences categories.
 String getPreferencesTooltip()
          The tooltip to display for a tabbed preferences panel
 String getTabbedPreferencesTitle()
          Get the title for the tab containing this preferences item.
 void intervalAdded(ListDataEvent lde)
           
 void intervalRemoved(ListDataEvent lde)
           
 boolean isPersistant()
          Indicates that this PrefernecesPanel should be stored across application starts by the PreferencesManager This should be true if the implementing class relies on the ConfigureManager stores and retrieves the preferences managed by the implementing class on behalf of the implementing class.
 void savePreferences()
          Save any changes to preferences.
 void storeValues()
           
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

log

static org.slf4j.Logger log

lineBorder

Border lineBorder

clickDelaySpinner

JSpinner clickDelaySpinner

refreshDelaySpinner

JSpinner refreshDelaySpinner

disallowedFrames

EditableList disallowedFrames

useAjaxCB

JCheckBox useAjaxCB

rebuildIndexCB

JCheckBox rebuildIndexCB

port

JTextField port

railroadName

JTextField railroadName

saveB

JButton saveB

cancelB

JButton cancelB

preferences

WebServerPreferences preferences

parentFrame

JFrame parentFrame

enableSave

boolean enableSave
Constructor Detail

WebServerPreferencesPanel

public WebServerPreferencesPanel()

WebServerPreferencesPanel

public WebServerPreferencesPanel(JFrame f)
Method Detail

enableSave

public void enableSave()
Show the save and cancel buttons if displayed in its own frame.


storeValues

public void storeValues()

applyValues

protected void applyValues()
Update the singleton instance of prefs, then mark (isDirty) that the values have changed and needs to save to xml file.


cancelValues

protected void cancelValues()

intervalAdded

public void intervalAdded(ListDataEvent lde)
Specified by:
intervalAdded in interface ListDataListener

intervalRemoved

public void intervalRemoved(ListDataEvent lde)
Specified by:
intervalRemoved in interface ListDataListener

contentsChanged

public void contentsChanged(ListDataEvent lde)
Specified by:
contentsChanged in interface ListDataListener

getPreferencesItem

public String getPreferencesItem()
Description copied from interface: PreferencesPanel
Get the Preferences Item identifier. Multiple PreferencePanels can be displayed as tabs in a single item. Preferences items are listed in the menu on the left of the preferences window.

Specified by:
getPreferencesItem in interface PreferencesPanel
Returns:
the preferences item identifier.

getPreferencesItemText

public String getPreferencesItemText()
Description copied from interface: PreferencesPanel
Get the text for the Preferences Item in the preferences window list of preferences categories. Multiple PreferencePanels can be displayed as tabs in a single item. Preferences items are listed in the menu on the left of the preferences window.

Specified by:
getPreferencesItemText in interface PreferencesPanel
Returns:
the text for the preferences item.

getTabbedPreferencesTitle

public String getTabbedPreferencesTitle()
Description copied from interface: PreferencesPanel
Get the title for the tab containing this preferences item.

Specified by:
getTabbedPreferencesTitle in interface PreferencesPanel
Returns:
a tab title

getLabelKey

public String getLabelKey()
Description copied from interface: PreferencesPanel
Text displayed above the preferences panel This label is only displayed if the preferences panel is in a tabbed set of preferences. This label can contain multiple lines.

Specified by:
getLabelKey in interface PreferencesPanel
Returns:
label text

getPreferencesComponent

public JComponent getPreferencesComponent()
Description copied from interface: PreferencesPanel
Get the preferences component for display

Specified by:
getPreferencesComponent in interface PreferencesPanel
Returns:
the preferences panel

isPersistant

public boolean isPersistant()
Description copied from interface: PreferencesPanel
Indicates that this PrefernecesPanel should be stored across application starts by the PreferencesManager This should be true if the implementing class relies on the ConfigureManager stores and retrieves the preferences managed by the implementing class on behalf of the implementing class.

Specified by:
isPersistant in interface PreferencesPanel

getPreferencesTooltip

public String getPreferencesTooltip()
Description copied from interface: PreferencesPanel
The tooltip to display for a tabbed preferences panel

Specified by:
getPreferencesTooltip in interface PreferencesPanel
Returns:
tooltip text

savePreferences

public void savePreferences()
Description copied from interface: PreferencesPanel
Save any changes to preferences. This method is called for every instance of a PreferencesPanel that is loaded by TabbedPreferences if PreferencesPanel.isPersistant() is false.

Specified by:
savePreferences in interface PreferencesPanel


Copyright © 1997-2013 JMRI Community.
JMRI, DecoderPro, PanelPro, SoundPro, DispatcherPro and associated logos are our trademarks.

Additional information on copyright, trademarks and licenses is linked here.
Site hosted by: Get JMRI Model Railroad Interface at SourceForge.net. Fast, secure and Free Open Source software downloads