org.herac.tuxguitar.gui.tools.browser.dialog
Class TGBrowserDialog

java.lang.Object
  extended by org.herac.tuxguitar.gui.tools.browser.dialog.TGBrowserDialog
All Implemented Interfaces:
IconLoader, LanguageLoader, TGBrowserConnectionHandler, TGBrowserFactoryHandler

public class TGBrowserDialog
extends java.lang.Object
implements TGBrowserFactoryHandler, TGBrowserConnectionHandler, IconLoader, LanguageLoader


Field Summary
static int CALL_CD_ROOT
           
static int CALL_CD_UP
           
static int CALL_CLOSE
           
static int CALL_ELEMENT
           
static int CALL_LIST
           
static int CALL_OPEN
           
protected  TableColumn column
           
protected  java.util.List elements
           
protected  TGBrowserMenuBar menu
           
protected  Table table
           
protected  TGBrowserToolBar toolBar
           
 
Constructor Summary
TGBrowserDialog()
           
 
Method Summary
protected  void addElements(java.util.List elements)
           
protected  void closeCollection()
           
 void dispose()
           
 void exit()
           
 TGBrowserCollection getCollection()
           
 TGBrowserConnection getConnection()
           
 TGBrowserElement getSelection(int index)
           
 Shell getShell()
           
 boolean isDisposed()
           
 void loadIcons()
           
 void loadProperties()
           
 void notifyAdded()
           
 void notifyCd(int callId)
           
 void notifyClosed(int callId)
           
 void notifyElements(int callId, java.util.List elements)
           
 void notifyError(int callId, java.lang.Throwable throwable)
           
 void notifyLockStatusChanged()
           
 void notifyOpened(int callId)
           
 void notifyRemoved()
           
 void notifyStream(int callId, java.io.InputStream stream, TGBrowserElement element)
           
protected  void openCollection()
           
 void openElement()
           
protected  void openStream(java.io.InputStream stream, TGBrowserElement element)
           
protected  void reload()
           
protected  void removeCollection(TGBrowserCollection collection)
           
protected  void removeElements()
           
 void setCollection(TGBrowserCollection collection)
           
 void show()
           
 void updateBars()
           
 void updateCollections(TGBrowserCollection selection)
           
protected  void updateColumn()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CALL_OPEN

public static final int CALL_OPEN
See Also:
Constant Field Values

CALL_CLOSE

public static final int CALL_CLOSE
See Also:
Constant Field Values

CALL_CD_ROOT

public static final int CALL_CD_ROOT
See Also:
Constant Field Values

CALL_CD_UP

public static final int CALL_CD_UP
See Also:
Constant Field Values

CALL_LIST

public static final int CALL_LIST
See Also:
Constant Field Values

CALL_ELEMENT

public static final int CALL_ELEMENT
See Also:
Constant Field Values

table

protected Table table

column

protected TableColumn column

elements

protected java.util.List elements

menu

protected TGBrowserMenuBar menu

toolBar

protected TGBrowserToolBar toolBar
Constructor Detail

TGBrowserDialog

public TGBrowserDialog()
Method Detail

getConnection

public TGBrowserConnection getConnection()

getCollection

public TGBrowserCollection getCollection()

setCollection

public void setCollection(TGBrowserCollection collection)

getShell

public Shell getShell()

exit

public void exit()

show

public void show()

isDisposed

public boolean isDisposed()

dispose

public void dispose()

updateColumn

protected void updateColumn()

updateBars

public void updateBars()

updateCollections

public void updateCollections(TGBrowserCollection selection)

getSelection

public TGBrowserElement getSelection(int index)

removeElements

protected void removeElements()

addElements

protected void addElements(java.util.List elements)

openCollection

protected void openCollection()

closeCollection

protected void closeCollection()

removeCollection

protected void removeCollection(TGBrowserCollection collection)

openElement

public void openElement()

notifyLockStatusChanged

public void notifyLockStatusChanged()
Specified by:
notifyLockStatusChanged in interface TGBrowserConnectionHandler

notifyOpened

public void notifyOpened(int callId)
Specified by:
notifyOpened in interface TGBrowserConnectionHandler

notifyClosed

public void notifyClosed(int callId)
Specified by:
notifyClosed in interface TGBrowserConnectionHandler

notifyError

public void notifyError(int callId,
                        java.lang.Throwable throwable)
Specified by:
notifyError in interface TGBrowserConnectionHandler

notifyCd

public void notifyCd(int callId)
Specified by:
notifyCd in interface TGBrowserConnectionHandler

notifyElements

public void notifyElements(int callId,
                           java.util.List elements)
Specified by:
notifyElements in interface TGBrowserConnectionHandler

notifyStream

public void notifyStream(int callId,
                         java.io.InputStream stream,
                         TGBrowserElement element)
Specified by:
notifyStream in interface TGBrowserConnectionHandler

openStream

protected void openStream(java.io.InputStream stream,
                          TGBrowserElement element)

loadIcons

public void loadIcons()
Specified by:
loadIcons in interface IconLoader

loadProperties

public void loadProperties()
Specified by:
loadProperties in interface LanguageLoader

notifyAdded

public void notifyAdded()
Specified by:
notifyAdded in interface TGBrowserFactoryHandler

notifyRemoved

public void notifyRemoved()
Specified by:
notifyRemoved in interface TGBrowserFactoryHandler

reload

protected void reload()