|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
jmri.jmrit.display.palette.ItemPanel
jmri.jmrit.display.palette.FamilyItemPanel
jmri.jmrit.display.palette.TableItemPanel
jmri.jmrit.display.palette.IndicatorTOItemPanel
public class IndicatorTOItemPanel
JPanels for the various item types that come from tool Tables - e.g. Sensors, Turnouts, etc.
| Nested Class Summary | |
|---|---|
protected class |
IndicatorTOItemPanel.IconDragJLabel
|
| 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 | |
|---|---|
protected Hashtable<String,Hashtable<String,NamedIcon>> |
_iconGroupsMap
|
protected Hashtable<String,Hashtable<String,NamedIcon>> |
_updateGroupsMap
|
| Fields inherited from class jmri.jmrit.display.palette.TableItemPanel |
|---|
_model, _table |
| Fields inherited from class jmri.jmrit.display.palette.FamilyItemPanel |
|---|
_currentIconMap, _dragIconPanel, _familyName, _iconFamilyPanel, _iconPanel, _update, _updateWithSameMap |
| Fields inherited from class jmri.jmrit.display.palette.ItemPanel |
|---|
_editor, _family, _itemType, _paletteFrame |
| 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 | |
|---|---|
IndicatorTOItemPanel(JmriJFrame parentFrame,
String type,
String family,
PickListModel model,
Editor editor)
Constructor for all table types. |
|
| Method Summary | |
|---|---|
protected void |
addIcons2Panel(Hashtable<String,Hashtable<String,NamedIcon>> map)
Make matrix of icons - each row has a button to change icons |
protected void |
checkCurrentMaps(Hashtable<String,Hashtable<String,NamedIcon>> iconMaps)
iconMap is existing map of the icon. |
void |
dispose()
|
protected JLabel |
getDragger(DataFlavor flavor,
Hashtable<String,NamedIcon> map)
|
Hashtable<String,Hashtable<String,NamedIcon>> |
getIconMaps()
|
String |
getOccBlock()
|
String |
getOccSensor()
|
ArrayList<String> |
getPaths()
|
boolean |
getShowTrainName()
pseudo inheritance |
protected void |
hideIcons()
|
void |
init()
Init for creation _bottom1Panel and _bottom2Panel alternate visibility in bottomPanel depending on whether icon families exist. |
void |
init(ActionListener doneAction)
Init for conversion of plain track to indicator track |
protected void |
initIconFamiliesPanel()
CENTER Panel |
protected JPanel |
initTablePanel(PickListModel model,
Editor editor)
top Panel |
void |
initUpdate(ActionListener doneAction,
Hashtable<String,Hashtable<String,NamedIcon>> iconMaps)
Init for update of existing indicator turnout _bottom3Panel has "Update Panel" button put into _bottom1Panel |
protected JPanel |
makeBottom1Panel()
|
protected JPanel |
makeBottom2Panel()
Replacement panel for _bottom1Panel when no icon families exist for _itemType |
protected void |
openEditDialog(String key)
|
protected void |
resetFamiliesPanel()
|
protected void |
setFamily(String family)
Action of family radio button |
void |
setOccDetector(String name)
|
void |
setPaths(ArrayList<String> paths)
|
void |
setShowTrainName(boolean show)
|
protected void |
showIcons()
|
protected void |
updateFamiliesPanel()
|
protected void |
updateIconGroupsMap(String key,
Hashtable<String,NamedIcon> iconMap)
_iconGroupsMap holds edit changes when done is pressed |
| Methods inherited from class jmri.jmrit.display.palette.TableItemPanel |
|---|
addToTable, getNamedBean, getTableSelection, init, makeAddToTableWindow, reset, setSelection, valueChanged |
| Methods inherited from class jmri.jmrit.display.palette.FamilyItemPanel |
|---|
addCreatePanels, addFamilyPanels, addIconsToPanel, checkCurrentMap, getIconMap, isUpdateWithSameMap, makeBottom3Panel, makeBottomPanel, makeDndIconPanel, makeFamilyButtons, removeIconFamiliesPanel |
| Methods inherited from class jmri.jmrit.display.palette.ItemPanel |
|---|
createNewFamily, getFamilyName, makeNewIconMap, openEditDialog, removeIconMap |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Hashtable<String,Hashtable<String,NamedIcon>> _iconGroupsMap
protected Hashtable<String,Hashtable<String,NamedIcon>> _updateGroupsMap
| Constructor Detail |
|---|
public IndicatorTOItemPanel(JmriJFrame parentFrame,
String type,
String family,
PickListModel model,
Editor editor)
| Method Detail |
|---|
public void init()
init in class TableItemPanelpublic void init(ActionListener doneAction)
init in class FamilyItemPanel
public void initUpdate(ActionListener doneAction,
Hashtable<String,Hashtable<String,NamedIcon>> iconMaps)
protected void checkCurrentMaps(Hashtable<String,Hashtable<String,NamedIcon>> iconMaps)
protected JPanel initTablePanel(PickListModel model,
Editor editor)
TableItemPanel
initTablePanel in class TableItemPanelpublic void dispose()
dispose in class ItemPanelprotected void initIconFamiliesPanel()
initIconFamiliesPanel in class FamilyItemPanelprotected void updateFamiliesPanel()
updateFamiliesPanel in class FamilyItemPanelprotected void resetFamiliesPanel()
protected void addIcons2Panel(Hashtable<String,Hashtable<String,NamedIcon>> map)
protected JPanel makeBottom2Panel()
FamilyItemPanel
makeBottom2Panel in class FamilyItemPanelprotected JPanel makeBottom1Panel()
makeBottom1Panel in class FamilyItemPanelprotected void hideIcons()
hideIcons in class FamilyItemPanelprotected void showIcons()
showIcons in class FamilyItemPanel
protected void updateIconGroupsMap(String key,
Hashtable<String,NamedIcon> iconMap)
protected void setFamily(String family)
FamilyItemPanel
setFamily in class FamilyItemPanelprotected void openEditDialog(String key)
public boolean getShowTrainName()
public void setShowTrainName(boolean show)
public String getOccSensor()
public String getOccBlock()
public void setOccDetector(String name)
public ArrayList<String> getPaths()
public void setPaths(ArrayList<String> paths)
public Hashtable<String,Hashtable<String,NamedIcon>> getIconMaps()
protected JLabel getDragger(DataFlavor flavor,
Hashtable<String,NamedIcon> map)
getDragger in class TableItemPanel
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||