|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Panel
wt.clients.prodmgmt.HelperPanel
HelperPanel is a utility Panel used by many UI classes in the wt.clients.prodmgt
package. It contains commonly used methods and attributes.
Supported API: true
Extendable: true
Nested Class Summary | |
class |
HelperPanel.WorkThread
The work thread for this Panel. |
Nested classes inherited from class java.awt.Panel |
Panel.AccessibleAWTPanel |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
private Applet |
applet
|
private ConfigurationItem |
configuration
|
private WTContext |
context
|
private HelpContext |
helpContext
|
private HelpSystem |
helpSystem
|
private InstanceItem |
instance
|
private PartItem |
part
|
protected static ResourceBundle |
resource
|
protected static String |
RESOURCE
|
static int |
SAVE
|
static int |
SET_CONFIGURATION_ITEM
|
static int |
SET_INSTANCE_ITEM
|
static int |
SET_PART_ITEM
|
protected ThreadGroup |
threadGroup
|
Fields inherited from class java.awt.Panel |
|
Fields inherited from class java.awt.Container |
|
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 | |
HelperPanel()
Construct a HelperPanel object. |
Method Summary | |
Applet |
getApplet()
Gets the applet for this panel. |
ConfigurationItem |
getConfigurationItem()
Get the contained ConfigurationItem |
WTContext |
getContext()
Get the WTContext to use in threads |
protected String |
getHelpBundleName()
Get the name of the Help Resource Bundle |
HelpContext |
getHelpContext()
Get the Help Context |
HelpSystem |
getHelpSystem()
Get the help system |
InstanceItem |
getInstanceItem()
Get the contained InstanceItem |
protected ResourceBundle |
getLabelsRB()
Gets the resource bundle for labels |
protected String |
getLocalizedMessage(String key,
Object[] params)
Deprecated. |
protected String |
getLocalizedValue(String key)
Deprecated. |
Frame |
getParentFrame()
Get the parent frame of the panel |
PartItem |
getPartItem()
Get the contained PartItem |
protected ThreadGroup |
getThreadGroup()
Get the thread group. |
void |
initializeHelp()
Initialize the help system |
protected void |
initResources()
Initialize used resource bundles. |
protected void |
localize()
|
protected void |
saveInThread()
Override as needed in descendants. |
void |
setApplet(Applet applet)
Sets the applet for this frame. |
void |
setConfigurationItem()
This method is invoked by the workthread to initialize the panel. |
void |
setConfigurationItem(ConfigurationItem configuration)
Set the contained ConfigurationItem |
void |
setContext(WTContext context)
Set the WTContent |
void |
setHelpContext(HelpContext helpContext)
Set the help context |
void |
setHelpSystem(HelpSystem helpSystem)
Set the help system |
void |
setInstanceItem()
This method is invoked by the workthread to initialize the panel. |
void |
setInstanceItem(InstanceItem instance)
Set the contained InstanceItem |
void |
setPartItem()
This method is invoked by the workthread to initialize the panel. |
void |
setPartItem(PartItem part)
Set the contained PartItem |
void |
setUpdateMode(boolean update_mode)
Set the Update mode for the panel. |
protected void |
showMessageDialog(String message,
boolean modal)
Convenience method to show a Message Dialog. |
Methods inherited from class java.awt.Panel |
addNotify, getAccessibleContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int SET_PART_ITEM
public static final int SAVE
public static final int SET_CONFIGURATION_ITEM
public static final int SET_INSTANCE_ITEM
private PartItem part
private ConfigurationItem configuration
private InstanceItem instance
private Applet applet
private HelpSystem helpSystem
private HelpContext helpContext
private WTContext context
protected static String RESOURCE
protected static ResourceBundle resource
protected ThreadGroup threadGroup
Constructor Detail |
public HelperPanel()
Method Detail |
public void setPartItem(PartItem part)
part
- the PartItem to containpublic void setConfigurationItem(ConfigurationItem configuration)
configuration
- the ConfigurationItem to containpublic void setInstanceItem(InstanceItem instance)
instance
- the InstanceItem to containpublic PartItem getPartItem()
public ConfigurationItem getConfigurationItem()
public InstanceItem getInstanceItem()
public void setUpdateMode(boolean update_mode)
update_mode
- if true, allow updatespublic void setPartItem() throws WTPropertyVetoException
WTPropertyVetoException
public void setConfigurationItem() throws WTPropertyVetoException
WTPropertyVetoException
public void setInstanceItem() throws WTPropertyVetoException
WTPropertyVetoException
protected void saveInThread() throws WTException
WTException
public void setApplet(Applet applet)
applet
- the applet.public Applet getApplet()
public Frame getParentFrame()
public void initializeHelp()
protected String getHelpBundleName()
public HelpSystem getHelpSystem()
public void setHelpSystem(HelpSystem helpSystem)
helpSystem
- the helpsystem to use in this componentpublic void setContext(WTContext context)
public WTContext getContext()
public void setHelpContext(HelpContext helpContext)
helpContext
- the help context to usepublic HelpContext getHelpContext()
protected void initResources()
protected void localize()
protected ResourceBundle getLabelsRB()
protected String getLocalizedMessage(String key, Object[] params)
key
- the key for the resource bundle entryparams
- an array of objects to substitute into the message
protected String getLocalizedValue(String key)
key
- the key for the resource bundle entry
protected void showMessageDialog(String message, boolean modal)
message
- the message to display in the dialogmodal
- if true, display the dialog as modalprotected ThreadGroup getThreadGroup()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |