Package rsb.plugin
Class ScriptSelector
java.lang.Object
java.awt.Component
java.awt.Container
java.awt.Window
java.awt.Dialog
javax.swing.JDialog
rsb.plugin.ScriptSelector
- All Implemented Interfaces:
- ImageObserver,- MenuContainer,- Serializable,- Accessible,- RootPaneContainer,- WindowConstants,- ScriptListener
- See Also:
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from class java.awt.DialogDialog.ModalExclusionType, Dialog.ModalityTypeNested classes/interfaces inherited from class java.awt.WindowWindow.TypeNested classes/interfaces inherited from class java.awt.ComponentComponent.BaselineResizeBehavior
- 
Field SummaryFields inherited from class java.awt.DialogDEFAULT_MODALITY_TYPEFields inherited from class java.awt.ComponentBOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTFields inherited from interface java.awt.image.ImageObserverABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTHFields inherited from interface javax.swing.WindowConstantsDISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE
- 
Constructor SummaryConstructorsConstructorDescriptionScriptSelector(Frame frame, RuneLite bot) Creates a script selector for the given bot instanceScriptSelector(RuneLite bot) Creates a script selector for the given bot instance
- 
Method SummaryModifier and TypeMethodDescriptionJComboBox<?>Generates and returns the accounts from the AccountManagerstatic ScriptSelectorgetInstance(RuneLite bot) Gets the singleton for the script selector TODO: remove the bot instance being requiredGenerates and returns the search buttongetTable(int icon, int name, int version, int desc) Generates and returns the script tablevoidinputChanged(RuneLite bot, int mask) voidload()Loads the scripts from the script directoriesstatic voidvoidscriptPaused(ScriptHandler handler, Script script) voidscriptResumed(ScriptHandler handler, Script script) voidscriptStarted(ScriptHandler handler, Script script) voidscriptStopped(ScriptHandler handler, Script script) voidupdate()Updates the script panelMethods inherited from class javax.swing.JDialoggetAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setTransferHandler, updateMethods inherited from class java.awt.DialogaddNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setBackground, setModal, setModalityType, setOpacity, setResizable, setShape, setTitle, setUndecorated, setVisible, show, toBackMethods inherited from class java.awt.WindowaddPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, removeNotify, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImage, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, toFrontMethods inherited from class java.awt.Containeradd, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validateMethods inherited from class java.awt.Componentaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, dispatchEvent, enable, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setMixingCutoutShape, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
- 
Constructor Details- 
ScriptSelectorCreates a script selector for the given bot instance- Parameters:
- bot- the bot instance
 
- 
ScriptSelectorCreates a script selector for the given bot instance- Parameters:
- frame- the frame to bind this to
- bot- the bot instance
 
 
- 
- 
Method Details- 
main
- 
getInstanceGets the singleton for the script selector TODO: remove the bot instance being required- Parameters:
- bot- the bot instance
- Returns:
- the singleton for script selector
 
- 
updatepublic void update()Updates the script panel
- 
loadpublic void load()Loads the scripts from the script directories
- 
getTableGenerates and returns the script table- Parameters:
- icon- The icon for the script
- name- The name of the script
- version- The version of the script
- desc- The description of the script
- Returns:
- script table
 
- 
getSearchGenerates and returns the search button- Returns:
- search button
 
- 
getAccountsGenerates and returns the accounts from the AccountManager- Returns:
- account combo box
 
- 
scriptStarted- Specified by:
- scriptStartedin interface- ScriptListener
 
- 
scriptStopped- Specified by:
- scriptStoppedin interface- ScriptListener
 
- 
scriptResumed- Specified by:
- scriptResumedin interface- ScriptListener
 
- 
scriptPaused- Specified by:
- scriptPausedin interface- ScriptListener
 
- 
inputChanged- Specified by:
- inputChangedin interface- ScriptListener
 
 
-