|
|||||||||||
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.replication.unit.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 WTContext |
context
|
private HelpContext |
helpContext
|
private HelpSystem |
helpSystem
|
private PartItem |
part
|
protected static ResourceBundle |
resource
|
protected static String |
RESOURCE
|
static int |
SAVE
|
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 | |
void |
addNotify()
Override default behavior to initialize the help system when this method is invoked. |
Applet |
getApplet()
Gets the applet for this panel. |
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 |
protected ResourceBundle |
getLabelsRB()
Gets the resource bundle for labels |
protected String |
getLocalizedMessage(String key,
Object[] params)
Convenience method to get a formatted localized message. |
protected String |
getLocalizedValue(String key)
Convenience method to get a localized message. |
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 |
setContext(WTContext context)
Set the WTContent |
void |
setHelpContext(HelpContext helpContext)
Set the help context |
void |
setHelpSystem(HelpSystem helpSystem)
Set the help system |
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 |
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
private PartItem part
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 PartItem getPartItem()
public void setUpdateMode(boolean update_mode)
update_mode
- if true, allow updatespublic void setPartItem() 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() throws PropertyVetoException
PropertyVetoException
protected String getHelpBundleName()
public void addNotify()
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 |