de.miethxml.hawron.gui.context
Class ContextViewComponentImpl

java.lang.Object
  extended byde.miethxml.hawron.gui.context.ContextViewComponentImpl
All Implemented Interfaces:
Configurable, org.apache.avalon.framework.configuration.Configurable, ContextViewComponent, org.apache.avalon.framework.activity.Disposable, GuiConfigurable, org.apache.avalon.framework.activity.Initializable, org.apache.avalon.framework.logger.LogEnabled, RepositorySelectionListener, org.apache.avalon.framework.service.Serviceable
Direct Known Subclasses:
ProjectContextViewComponent

public class ContextViewComponentImpl
extends java.lang.Object
implements RepositorySelectionListener, org.apache.avalon.framework.service.Serviceable, org.apache.avalon.framework.activity.Initializable, org.apache.avalon.framework.activity.Disposable, GuiConfigurable, ContextViewComponent, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.logger.LogEnabled

Author:
Simon Mieth

Field Summary
protected  ActionManagerImpl actionmanager
           
protected  ApplicationSetup appSetup
           
protected  BookmarkView bookmarkView
           
protected  java.lang.String contextBase
           
protected  javax.swing.JComboBox destinationList
           
protected  EditorManagerImpl editmanager
           
protected  FileModelManager fileModelManager
           
protected  RepositoryModel fsModel
           
protected  boolean initialized
           
protected  org.apache.avalon.framework.logger.Logger logger
           
protected  PluginManager pluginManager
           
protected  SearchEngineImpl searchEngine
           
protected  ContextSetup setup
           
protected  boolean showingTable
           
protected  boolean showingTree
           
protected  javax.swing.JComboBox taskBuildDir
           
protected  ViewerManagerImpl viewermanager
           
 
Constructor Summary
ContextViewComponentImpl()
           
ContextViewComponentImpl(java.lang.String baseDir)
           
 
Method Summary
 void configure(org.apache.avalon.framework.configuration.Configuration conf)
           
 void directorySelected(Reloadable model, FileModel fm)
           
 void dispose()
           
 void enableLogging(org.apache.avalon.framework.logger.Logger log)
           
 void fileSelected(Reloadable model, FileModel fm)
           
 javax.swing.Icon getIcon()
           
 java.lang.String getLabel()
           
 java.lang.String getLabel(java.lang.String lang)
           
 javax.swing.JComponent getSetupComponent()
           
 javax.swing.JComponent getViewComponent()
           
 void init()
           
 void initialize()
           
 boolean isSetup()
           
 boolean isShowButtonPanels()
           
 boolean isShowingTable()
           
 boolean isShowingTree()
           
 void service(org.apache.avalon.framework.service.ServiceManager manager)
           
 void setBaseLocation(java.lang.String uri)
           
 void setCheckSupportedExtensions(boolean b)
           
 void setEnabled(boolean state)
           
 void setShowingTable(boolean showingTable)
           
 void setShowingTree(boolean showingTree)
           
 void setup()
           
 void showButtonPanels(boolean state)
           
 void unselect()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

contextBase

protected java.lang.String contextBase

logger

protected org.apache.avalon.framework.logger.Logger logger

destinationList

protected javax.swing.JComboBox destinationList

taskBuildDir

protected javax.swing.JComboBox taskBuildDir

initialized

protected boolean initialized

fsModel

protected RepositoryModel fsModel

pluginManager

protected PluginManager pluginManager

searchEngine

protected SearchEngineImpl searchEngine

editmanager

protected EditorManagerImpl editmanager

viewermanager

protected ViewerManagerImpl viewermanager

actionmanager

protected ActionManagerImpl actionmanager

bookmarkView

protected BookmarkView bookmarkView

appSetup

protected ApplicationSetup appSetup

setup

protected ContextSetup setup

fileModelManager

protected FileModelManager fileModelManager

showingTree

protected boolean showingTree

showingTable

protected boolean showingTable
Constructor Detail

ContextViewComponentImpl

public ContextViewComponentImpl()

ContextViewComponentImpl

public ContextViewComponentImpl(java.lang.String baseDir)
Method Detail

initialize

public void initialize()
Specified by:
initialize in interface org.apache.avalon.framework.activity.Initializable

setBaseLocation

public void setBaseLocation(java.lang.String uri)
Specified by:
setBaseLocation in interface ContextViewComponent

directorySelected

public void directorySelected(Reloadable model,
                              FileModel fm)
Specified by:
directorySelected in interface RepositorySelectionListener

fileSelected

public void fileSelected(Reloadable model,
                         FileModel fm)
Specified by:
fileSelected in interface RepositorySelectionListener

service

public void service(org.apache.avalon.framework.service.ServiceManager manager)
             throws org.apache.avalon.framework.service.ServiceException
Specified by:
service in interface org.apache.avalon.framework.service.Serviceable
Throws:
org.apache.avalon.framework.service.ServiceException

showButtonPanels

public void showButtonPanels(boolean state)
Specified by:
showButtonPanels in interface ContextViewComponent

isShowButtonPanels

public boolean isShowButtonPanels()
Specified by:
isShowButtonPanels in interface ContextViewComponent

getLabel

public java.lang.String getLabel(java.lang.String lang)

getIcon

public javax.swing.Icon getIcon()

getViewComponent

public javax.swing.JComponent getViewComponent()

init

public void init()

unselect

public void unselect()
Specified by:
unselect in interface RepositorySelectionListener

setEnabled

public void setEnabled(boolean state)

dispose

public void dispose()
Specified by:
dispose in interface org.apache.avalon.framework.activity.Disposable

getLabel

public java.lang.String getLabel()
Specified by:
getLabel in interface GuiConfigurable

getSetupComponent

public javax.swing.JComponent getSetupComponent()
Specified by:
getSetupComponent in interface GuiConfigurable

isSetup

public boolean isSetup()
Specified by:
isSetup in interface Configurable

setup

public void setup()
Specified by:
setup in interface Configurable

setCheckSupportedExtensions

public void setCheckSupportedExtensions(boolean b)
Specified by:
setCheckSupportedExtensions in interface ContextViewComponent

configure

public void configure(org.apache.avalon.framework.configuration.Configuration conf)
               throws org.apache.avalon.framework.configuration.ConfigurationException
Specified by:
configure in interface org.apache.avalon.framework.configuration.Configurable
Throws:
org.apache.avalon.framework.configuration.ConfigurationException

enableLogging

public void enableLogging(org.apache.avalon.framework.logger.Logger log)
Specified by:
enableLogging in interface org.apache.avalon.framework.logger.LogEnabled

isShowingTable

public boolean isShowingTable()
Returns:
Returns the showingTable.

setShowingTable

public void setShowingTable(boolean showingTable)
Parameters:
showingTable - The showingTable to set.

isShowingTree

public boolean isShowingTree()
Returns:
Returns the showingTree.

setShowingTree

public void setShowingTree(boolean showingTree)
Parameters:
showingTree - The showingTree to set.