|
|||||||||||
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
wt.clients.prodmgmt.UsesPanel
UsesPanel displays the uses relationships for a part.
Supported API: false
Extendable: false
Nested Class Summary | |
(package private) class |
UsesPanel.EventHandlerThread
|
(package private) class |
UsesPanel.SymAction
|
(package private) class |
UsesPanel.SymFocus
|
(package private) class |
UsesPanel.SymItem
|
(package private) class |
UsesPanel.SymKey
|
(package private) class |
UsesPanel.SymPropertyChange
|
Nested classes inherited from class wt.clients.prodmgmt.HelperPanel |
HelperPanel.WorkThread |
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 | |
(package private) Panel |
actionLayoutPanel
|
(package private) Panel |
actionPanel
|
(package private) Button |
addButton
|
(package private) Panel |
buttonPanel
|
(package private) Label |
findingLabel
|
static int |
ID_COLUMN
|
private long |
latestLineNumber
|
static int |
LINE_NUMBER_COLUMN
|
private static long |
LINE_NUMBER_INCREMENT
|
static String |
LINE_NUMBER_UNDEFINED_STRING
|
(package private) Label |
lineNumberLabel
|
(package private) Panel |
lineNumberPanel
|
(package private) TextField |
lineNumberTextField
|
static int |
MANAGED_BY_COLUMN
|
static int |
NAME_COUMN
|
(package private) Button |
nextLineNumberButton
|
static int |
NUMBER_COLUMN
|
(package private) Button |
occurrenceButton
|
private static int |
PROCESS_ADD_BUTTON
|
private static int |
PROCESS_EDIT_OCCURRENCES
|
private static int |
PROCESS_NEXT_LINE_NUMBER
|
(package private) Panel |
progressPanel
|
static int |
QTY_COLUMN
|
(package private) Label |
qtyLabel
|
(package private) Spinner |
qtyListSpinner
|
(package private) Panel |
qtyPanel
|
(package private) Button |
removeButton
|
private ThreadGroup |
theThreadGroup
|
(package private) Label |
titleLabel
|
(package private) Panel |
titlePanel
|
static int |
UNIT_COLUMN
|
(package private) EnumeratedChoice |
unitChoice
|
(package private) Label |
unitLabel
|
(package private) Panel |
unitPanel
|
protected boolean |
updateMode
|
(package private) Panel |
updateUsagePanel
|
protected UsesInterfaceList |
usesList
|
(package private) WTMultiList |
usesMultiList
|
(package private) symantec.itools.awt.BorderPanel |
usesPartPanel
|
private boolean |
validateLineNumber
|
(package private) Button |
viewButton
|
(package private) Panel |
workingPanel
|
Fields inherited from class wt.clients.prodmgmt.HelperPanel |
resource, RESOURCE, SAVE, SET_CONFIGURATION_ITEM, SET_INSTANCE_ITEM, SET_PART_ITEM, 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 | |
UsesPanel()
Create the panel. |
Method Summary | |
void |
addHelpListener(PropertyChangeListener pcl)
|
void |
addNotify()
|
protected void |
addUses()
|
(package private) void |
addUsesButton_Action(ActionEvent event)
Launch a WTChooser to search for new parts to use. |
protected void |
editOccurrences()
|
protected void |
enableOccurrencesButton(boolean enable)
|
protected void |
enableOccurrencesButton(double gui_quantity)
|
protected void |
enableUnitsDropDown()
|
(package private) long |
getMaxLineNumber()
|
protected static int |
getOccurrenceCount(UsageInterfaceItem usage_item)
|
protected Vector |
getOccurrencedUsages(int row_to_avoid)
|
QuantityUnit |
getSelectedUnit()
Get the selected unit from the unit choice. |
QuantityUnit |
getSelectedUnit(int row)
Get the unit for the usage item at the specified row |
protected void |
handleDecrementQuantity(int gui_quantity,
int selected_row,
UsageInterfaceItem usage)
|
protected void |
handleQuantityChange()
|
protected void |
handleUnitsChange()
|
void |
initializeHelp()
Initialize the help system. |
(package private) void |
lineNumberTextField_keyPressed(KeyEvent event)
Preprocess key events before they are passed to the TextField. |
(package private) void |
lineNumberTextField_keyReleased(KeyEvent event)
When a key has been released in the line number entry field - update the table with the new value. |
protected void |
localize()
|
(package private) void |
nextLineNumberButton_Action(ActionEvent event)
|
protected void |
occurrenceButton_Action(ActionEvent event)
|
protected void |
processAddUsesCommand()
|
private void |
processNextLineNumber()
Set the next available line number in theline number text field |
protected void |
processOccurrenceCommand()
|
(package private) void |
qtyListSpinner_propertyChange(PropertyChangeEvent event)
|
(package private) void |
quantityListSpinner_actionPerformed(ActionEvent event)
|
(package private) void |
removeUsesButton_Action(ActionEvent event)
|
boolean |
save()
Save any changes. |
void |
setPartItem()
This method is invoked by the WorkThread to initialize values based on the contained part item. |
void |
setUpdateMode(boolean update_mode)
Set the update mode for the panel. |
protected void |
setValues()
|
(package private) void |
unitChoice_ItemStateChanged(ItemEvent event)
|
(package private) void |
usesMultiList_actionPerformed(ActionEvent event)
|
(package private) void |
usesMultiList_itemStateChanged(ItemEvent event)
|
(package private) void |
UsesPanel_GotFocus(FocusEvent event)
|
private long |
validateAllLineNumbers()
Check to see if any line numbers are used more than once. |
(package private) boolean |
validateLineNumber(long lineNum)
Check to see if the line number input is already used in the assembly. |
void |
viewSelectedItem()
Launch the view task for the seleted item in the list. |
(package private) void |
viewUsesButton_Action(ActionEvent event)
|
Methods inherited from class wt.clients.prodmgmt.HelperPanel |
getApplet, getConfigurationItem, getContext, getHelpBundleName, getHelpContext, getHelpSystem, getInstanceItem, getLabelsRB, getLocalizedMessage, getLocalizedValue, getParentFrame, getPartItem, getThreadGroup, initResources, saveInThread, setApplet, setConfigurationItem, setConfigurationItem, setContext, setHelpContext, setHelpSystem, setInstanceItem, setInstanceItem, setPartItem, showMessageDialog |
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 ID_COLUMN
public static final int NUMBER_COLUMN
public static final int NAME_COUMN
public static final int QTY_COLUMN
public static final int UNIT_COLUMN
public static final int LINE_NUMBER_COLUMN
public static final int MANAGED_BY_COLUMN
public static final String LINE_NUMBER_UNDEFINED_STRING
private static final int PROCESS_NEXT_LINE_NUMBER
private static final int PROCESS_EDIT_OCCURRENCES
private static final int PROCESS_ADD_BUTTON
private ThreadGroup theThreadGroup
protected UsesInterfaceList usesList
protected boolean updateMode
private static long LINE_NUMBER_INCREMENT
private long latestLineNumber
private boolean validateLineNumber
Panel progressPanel
Label findingLabel
Panel workingPanel
Panel titlePanel
Label titleLabel
symantec.itools.awt.BorderPanel usesPartPanel
WTMultiList usesMultiList
Panel actionPanel
Panel actionLayoutPanel
Panel updateUsagePanel
Panel qtyPanel
Label qtyLabel
Spinner qtyListSpinner
Panel unitPanel
Label unitLabel
EnumeratedChoice unitChoice
Panel lineNumberPanel
Label lineNumberLabel
TextField lineNumberTextField
Button nextLineNumberButton
Panel buttonPanel
Button viewButton
Button addButton
Button removeButton
Button occurrenceButton
Constructor Detail |
public UsesPanel()
Method Detail |
public void setPartItem()
setPartItem
in class HelperPanel
public void setUpdateMode(boolean update_mode)
setUpdateMode
in class HelperPanel
update_mode
- if true, allow updatespublic boolean save() throws WTException
WTException
protected void setValues()
public QuantityUnit getSelectedUnit(int row)
row
- the row in the multilist
protected void localize()
localize
in class HelperPanel
public void initializeHelp()
initializeHelp
in class HelperPanel
public void viewSelectedItem()
public void addNotify()
void addUsesButton_Action(ActionEvent event)
event
- the action eventprotected void processAddUsesCommand()
protected void addUses()
public QuantityUnit getSelectedUnit()
void removeUsesButton_Action(ActionEvent event)
void viewUsesButton_Action(ActionEvent event)
protected void occurrenceButton_Action(ActionEvent event)
protected void processOccurrenceCommand()
protected void editOccurrences()
void quantityListSpinner_actionPerformed(ActionEvent event)
protected Vector getOccurrencedUsages(int row_to_avoid)
void usesMultiList_itemStateChanged(ItemEvent event)
void usesMultiList_actionPerformed(ActionEvent event)
void unitChoice_ItemStateChanged(ItemEvent event)
void UsesPanel_GotFocus(FocusEvent event)
public void addHelpListener(PropertyChangeListener pcl)
void qtyListSpinner_propertyChange(PropertyChangeEvent event)
protected void handleUnitsChange()
protected void handleQuantityChange()
protected void enableOccurrencesButton(double gui_quantity)
protected void enableOccurrencesButton(boolean enable)
protected void enableUnitsDropDown()
protected void handleDecrementQuantity(int gui_quantity, int selected_row, UsageInterfaceItem usage)
protected static int getOccurrenceCount(UsageInterfaceItem usage_item)
long getMaxLineNumber()
private long validateAllLineNumbers()
boolean validateLineNumber(long lineNum)
lineNum
- the line number to check
void nextLineNumberButton_Action(ActionEvent event)
void lineNumberTextField_keyPressed(KeyEvent event)
void lineNumberTextField_keyReleased(KeyEvent event)
private void processNextLineNumber()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |