com.gridsystems.config
Interface SwingConfiguratorView

All Superinterfaces:
ConfiguratorView
All Known Implementing Classes:
BasePanel, JVMSwingView, TomcatSwingView

public interface SwingConfiguratorView
extends ConfiguratorView

Specialized Swing version of ConfiguratorView interface.

Version:
1.0
Author:
Rodrigo Ruiz Aguayo

Method Summary
 void addChangeListener(javax.swing.event.ChangeListener listener)
          ChangeListeners will be notified when a change is performed on the view data, giving the GUI an opportunity to refresh its state.
 javax.swing.JComponent getComponent()
          Gets a Swing component for visual edition.
 javax.swing.Icon getIcon()
          Gets an icon instance for displaying on the view panel topright side.
 javax.swing.Icon getSmallIcon()
          Gets an icon instance for displaying on the menu tree node.
 boolean isModified()
          Gets if a change has been performed on the view data, with respect to the model data.
 
Methods inherited from interface com.gridsystems.config.ConfiguratorView
getConfigurator, getSubtitle, getTitle, getValues, hasErrors, setValues
 

Method Detail

getIcon

javax.swing.Icon getIcon()
Gets an icon instance for displaying on the view panel topright side. Its recommended size is 55 x 55 pixels

Returns:
An icon for the view

getSmallIcon

javax.swing.Icon getSmallIcon()
Gets an icon instance for displaying on the menu tree node. Its recommended size is 18 x 18 pixels

Returns:
An icon for the menu tree

getComponent

javax.swing.JComponent getComponent()
Gets a Swing component for visual edition.

Returns:
A Swing component

addChangeListener

void addChangeListener(javax.swing.event.ChangeListener listener)
ChangeListeners will be notified when a change is performed on the view data, giving the GUI an opportunity to refresh its state.

Parameters:
listener - The listener instance

isModified

boolean isModified()
Gets if a change has been performed on the view data, with respect to the model data.

Returns:
true if the view data differs from its initial value


Copyright © 2007-2008 Grid Systems, S.A.. All Rights Reserved.