User Tools

Site Tools


gmtoolcoding

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

gmtoolcoding [2012/09/29 23:37]
irian
gmtoolcoding [2012/09/29 23:40] (current)
irian
Line 38: Line 38:
 This method will be called whenever the scenario is closed and should reset your plugin to the default state. This method will be called whenever the scenario is closed and should reset your plugin to the default state.
  
 +===== Interface "ToolbarElementProvider" =====
 +Implement this interface if you want to add an element to the toolbar below the plugins (for example, the sound player uses this to provide quick play/stop buttons in the toolbar, so that the user doesn't have to switch to the plugin itself to start the currently selected song or stop the one currently playing). 
 +
 +There is one method to implement, which should simply return the object you want to have added to the toolbar. Personally, I use a JPanel with a titled border (with a line border, 1px, black) for these elements, but that's not a rule.
 +
 +<code>JComponent getToolBarElement();</code>
gmtoolcoding.txt ยท Last modified: 2012/09/29 23:40 by irian