StrategyPanel
Package: velox.gui
Type: Class
Inheritance: java.lang.Object รขโ โ java.awt.Component รขโ โ java.awt.Container รขโ โ javax.swing.JComponent รขโ โ javax.swing.JPanel รขโ โ StrategyPanel
All Implemented Interfaces: ImageObserver, MenuContainer, Serializable, Accessible
Descriptionโ
JPanel that can be display in strategies dialog with custom title specified
Will follow general style with border and title
If you want displayed panel to be without general styled border and title, set title to null
Also, sets all components Component.setEnabled(boolean)
See Also:
- Serialized Form
Constructorsโ
StrategyPanelโ
StrategyPanel(String title)
StrategyPanelโ
StrategyPanel(String title, boolean isDoubleBuffered)
StrategyPanelโ
StrategyPanel(String title, LayoutManager layout)
StrategyPanelโ
StrategyPanel(String title, LayoutManager layout, boolean isDoubleBuffered)
Methodsโ
addReloadListenerโ
void addReloadListener(Runnable reloadListener)
Called on requestReload()
getTitleโ
String getTitle()
removeReloadListenersIfโ
void removeReloadListenersIf(Predicate<Runnable> listener)
Remove reloadListeners (see requestReload()) which match the rule.
requestReloadโ
void requestReload()
Reload strategy panels,
Layer1CustomPanelsGetter.getCustomGuiFor(String, String) will be
called again if panel was still visible to retrieve updated version
setEnabledโ
void setEnabled(boolean enabled)
setLocalizedTitleโ
void setLocalizedTitle(TranslatableComponent localizedTitle)
Set localized title.
StrategyPanel
Inheritanceโ
Methods inherited from class java.awt.Component:
action(Event, Object)add(PopupMenu)addComponentListener(ComponentListener)addFocusListener(FocusListener)addHierarchyBoundsListener(HierarchyBoundsListener)addHierarchyListener(HierarchyListener)addInputMethodListener(InputMethodListener)addKeyListener(KeyListener)addMouseListener(MouseListener)addMouseMotionListener(MouseMotionListener)addMouseWheelListener(MouseWheelListener)bounds()checkImage(Image, int, int, ImageObserver)checkImage(Image, ImageObserver)coalesceEvents(AWTEvent, AWTEvent)contains(Point)createImage(int, int)createImage(ImageProducer)createVolatileImage(int, int)createVolatileImage(int, int, ImageCapabilities)disableEvents(long)dispatchEvent(AWTEvent)enable(boolean)enableEvents(long)enableInputMethods(boolean)firePropertyChange(String, byte, byte)firePropertyChange(String, double, double)firePropertyChange(String, float, float)firePropertyChange(String, long, long)firePropertyChange(String, short, short)firePropertyChange(String, Object, Object)getBackground()getBounds()getColorModel()getComponentListeners()getComponentOrientation()getCursor()getDropTarget()getFocusCycleRootAncestor()getFocusListeners()getFocusTraversalKeysEnabled()getFont()getForeground()getGraphicsConfiguration()getHierarchyBoundsListeners()getHierarchyListeners()getIgnoreRepaint()getInputContext()getInputMethodListeners()getInputMethodRequests()getKeyListeners()getLocale()getLocation()getLocationOnScreen()getMouseListeners()getMouseMotionListeners()getMousePosition()getMouseWheelListeners()getName()getParent()getPropertyChangeListeners()getPropertyChangeListeners(String)getSize()getToolkit()getTreeLock()gotFocus(Event, Object)handleEvent(Event)hasFocus()imageUpdate(Image, int, int, int, int, int)inside(int, int)isBackgroundSet()isCursorSet()isDisplayable()isEnabled()isFocusable()isFocusOwner()isFocusTraversable()isFontSet()isForegroundSet()isLightweight()isMaximumSizeSet()isMinimumSizeSet()isPreferredSizeSet()isShowing()isValid()isVisible()keyDown(Event, int)keyUp(Event, int)list()list(PrintStream)list(PrintWriter)location()lostFocus(Event, Object)mouseDown(Event, int, int)mouseDrag(Event, int, int)mouseEnter(Event, int, int)mouseExit(Event, int, int)mouseMove(Event, int, int)mouseUp(Event, int, int)move(int, int)nextFocus()paintAll(Graphics)postEvent(Event)prepareImage(Image, int, int, ImageObserver)prepareImage(Image, ImageObserver)processComponentEvent(ComponentEvent)processFocusEvent(FocusEvent)processHierarchyBoundsEvent(HierarchyEvent)processHierarchyEvent(HierarchyEvent)processInputMethodEvent(InputMethodEvent)processMouseWheelEvent(MouseWheelEvent)remove(MenuComponent)removeComponentListener(ComponentListener)removeFocusListener(FocusListener)removeHierarchyBoundsListener(HierarchyBoundsListener)removeHierarchyListener(HierarchyListener)removeInputMethodListener(InputMethodListener)removeKeyListener(KeyListener)removeMouseListener(MouseListener)removeMouseMotionListener(MouseMotionListener)removeMouseWheelListener(MouseWheelListener)removePropertyChangeListener(PropertyChangeListener)removePropertyChangeListener(String, PropertyChangeListener)repaint()repaint(int, int, int, int)repaint(long)requestFocus(boolean, FocusEvent.Cause)requestFocus(FocusEvent.Cause)requestFocusInWindow(FocusEvent.Cause)resize(int, int)resize(Dimension)setBounds(int, int, int, int)setBounds(Rectangle)setComponentOrientation(ComponentOrientation)setCursor(Cursor)setDropTarget(DropTarget)setFocusable(boolean)setFocusTraversalKeysEnabled(boolean)setIgnoreRepaint(boolean)setLocale(Locale)setLocation(int, int)setLocation(Point)setMixingCutoutShape(Shape)setName(String)setSize(int, int)setSize(Dimension)show()show(boolean)size()toString()transferFocus()transferFocusBackward()transferFocusUpCycle()
Methods inherited from class java.lang.Object:
clone()equals(Object)finalize()getClass()hashCode()notify()notifyAll()wait()wait(long)wait(long, int)
Constructorsโ
StrategyPanelโ
public StrategyPanel(String title)
Parameters:
title- Title that will be displayed in strategies dialog
StrategyPanelโ
public StrategyPanel(String title, boolean isDoubleBuffered)
Parameters:
title- Title that will be displayed in strategies dialogisDoubleBuffered-
StrategyPanelโ
public StrategyPanel(String title, LayoutManager layout, boolean isDoubleBuffered)
Parameters:
title- Title that will be displayed in strategies dialoglayout-isDoubleBuffered-
StrategyPanelโ
public StrategyPanel(String title, LayoutManager layout)
Parameters:
title- Title that will be displayed in strategies dialoglayout-
Methodsโ
setLocalizedTitleโ
public void setLocalizedTitle(TranslatableComponent localizedTitle)
Set localized title. After set, this version will be displayed instead of usual title.
Parameters:
localizedTitle-
getTitleโ
public String getTitle()
setEnabledโ
public void setEnabled(boolean enabled)
Overrides: setEnabled(boolean) in class JComponent
requestReloadโ
public void requestReload()
Reload strategy panels, Layer1CustomPanelsGetter.getCustomGuiFor(String, String) will be called again if panel was still visible to retrieve updated version.
addReloadListenerโ
public void addReloadListener(Runnable reloadListener)
Called on requestReload()
Parameters:
reloadListener-
removeReloadListenersIfโ
public void removeReloadListenersIf(Predicate<Runnable> listener)
Remove reloadListeners (see requestReload()) which match the rule. Helpful when panel gets reused multiple times.