com.sdm.quasar.client.swing.systeminfo
Class SystemInfoTreeFeature

java.lang.Object
  extended bycom.sdm.quasar.client.core.dialog.AbstractFeature
      extended bycom.sdm.quasar.client.swing.systeminfo.SystemInfoTreeFeature
All Implemented Interfaces:
Feature, SystemInfoProvider

public class SystemInfoTreeFeature
extends AbstractFeature

This is the tree panel of the system info dialog. It controls the system info tree and the refresh and detail level of it.

Version:
1.$Revision$
Author:
Thomas Wolf

Constructor Summary
SystemInfoTreeFeature()
           
 
Method Summary
protected  void activate()
          Called when the dialog is activated.
protected  void deactivate()
          Called when the dialog is deactivated.
protected  void dispose()
          Called when the feature or dialog is disposed.
 int getDetailLevel()
          Returns the int.
 long getRefreshTime()
          Returns the long.
 javax.swing.JComponent getSystemInfoTree()
          Returns the panel with the tree.
protected  void init()
          Called when the feature is initializing.
 void refresh()
           
 void setDetailLevel(int detailLevel)
          Sets the int to the given value.
 void setRefreshTime(long refreshTime)
          Sets the long to the given value.
 void start()
           
 void stop()
           
 
Methods inherited from class com.sdm.quasar.client.core.dialog.AbstractFeature
attachDialogControl, collectSystemInfo, disposeFeature, getDialogControl, isInitialized, prepare, release
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SystemInfoTreeFeature

public SystemInfoTreeFeature()
Method Detail

init

protected void init()
Description copied from class: AbstractFeature
Called when the feature is initializing. This is normally done, when the feature is connected to the lifecycle of the DialogControl installed to. To access the DialogControl use the AbstractFeature.getDialogControl() method.

Override this method to perform some action on initialization e.g. register public services.

Specified by:
init in class AbstractFeature
See Also:
AbstractFeature.init()

dispose

protected void dispose()
                throws DisposeException
Description copied from class: AbstractFeature
Called when the feature or dialog is disposed. Override this method to clean up resources and free memory when disposing.

Specified by:
dispose in class AbstractFeature
Throws:
DisposeException
See Also:
AbstractFeature.dispose()

getRefreshTime

public long getRefreshTime()
Returns the long.


setRefreshTime

public void setRefreshTime(long refreshTime)
Sets the long to the given value.

Parameters:
refreshTime - the long to set.

getDetailLevel

public int getDetailLevel()
Returns the int.


setDetailLevel

public void setDetailLevel(int detailLevel)
Sets the int to the given value.

Parameters:
detailLevel - the int to set.

getSystemInfoTree

public javax.swing.JComponent getSystemInfoTree()
Returns the panel with the tree.


activate

protected void activate()
Description copied from class: AbstractFeature
Called when the dialog is activated. Override this method if you want to perform some action on LifeCycle.activate().

The default implementation in AbstractFeature does nothing.

Overrides:
activate in class AbstractFeature
See Also:
AbstractFeature.activate()

deactivate

protected void deactivate()
Description copied from class: AbstractFeature
Called when the dialog is deactivated. Override this method if you want to perform some action on LifeCycle.deactivate()().

The default implementation in AbstractFeature does nothing.

Overrides:
deactivate in class AbstractFeature
See Also:
AbstractFeature.deactivate()

start

public void start()

stop

public void stop()

refresh

public void refresh()