org.esa.beam.framework.ui.application.support
Class AbstractControlFactory

java.lang.Object
  extended by org.esa.beam.framework.ui.application.support.AbstractControlFactory
All Implemented Interfaces:
ControlFactory
Direct Known Subclasses:
AbstractApplicationPage, AbstractPageComponentPane, AbstractToolView

public abstract class AbstractControlFactory
extends Object
implements ControlFactory

A control factory that only creates it's control when requested.

Author:
Marco Peters (original by Keith Donald of Spring RCP project)

Constructor Summary
protected AbstractControlFactory()
           
 
Method Summary
protected abstract  JComponent createControl()
           
protected  void createControlIfNecessary()
           
 JComponent getControl()
          Gets or creates (if not yet existing) the actual Swing UI control component.
 boolean isControlCreated()
           
protected  boolean isSingleton()
           
protected  void setSingleton(boolean singleton)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractControlFactory

protected AbstractControlFactory()
Method Detail

isSingleton

protected final boolean isSingleton()

setSingleton

protected final void setSingleton(boolean singleton)

getControl

public final JComponent getControl()
Description copied from interface: ControlFactory
Gets or creates (if not yet existing) the actual Swing UI control component.

Specified by:
getControl in interface ControlFactory
Returns:
The page component.

isControlCreated

public final boolean isControlCreated()

createControlIfNecessary

protected void createControlIfNecessary()

createControl

protected abstract JComponent createControl()


Copyright © 2002-2013 Brockmann Consult GmbH. All Rights Reserved.