org.keridwen.core.ui.dockingframes.impl
Class MainFrameDefault

java.lang.Object
  extended by org.keridwen.core.ui.dockingframes.impl.MainFrameDefault
All Implemented Interfaces:
MainFrameService

public class MainFrameDefault
extends Object
implements MainFrameService

Default implementation of the main frame servcie.


Constructor Summary
MainFrameDefault()
           
 
Method Summary
 void addComponent(String title, Component component)
          Adds the given Component to the frame.
 void close()
          Closes the frame.
 void display()
          Displays the frame.
 bibliothek.gui.dock.SplitDockStation getDefaultDockStation()
          Gets the default dock station.
 bibliothek.gui.DockController getDockController()
          Gets the dock controller.
 JFrame getFrame()
          Returns the JFrame managed by the service.
 JPanel getMainPanel()
          Gets the main panel.
 void initializeGUI()
          Initializes the graphical user interface.
 void invokeLater(Runnable runnable)
          Invokes the given runnable later.
 void removeComponent(Component component)
          Removes the given component from the frame.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MainFrameDefault

public MainFrameDefault()
Method Detail

initializeGUI

public final void initializeGUI()
Initializes the graphical user interface.


getDefaultDockStation

public final bibliothek.gui.dock.SplitDockStation getDefaultDockStation()
Gets the default dock station.

Returns:
the default dock station

getDockController

public final bibliothek.gui.DockController getDockController()
Gets the dock controller.

Returns:
the dock controller

display

public final void display()
Description copied from interface: MainFrameService
Displays the frame.

Specified by:
display in interface MainFrameService

close

public final void close()
Description copied from interface: MainFrameService
Closes the frame.

Specified by:
close in interface MainFrameService

getFrame

public final JFrame getFrame()
Description copied from interface: MainFrameService
Returns the JFrame managed by the service.

Specified by:
getFrame in interface MainFrameService
Returns:
the frame

getMainPanel

public final JPanel getMainPanel()
Gets the main panel.

Returns:
the main panel

addComponent

public final void addComponent(String title,
                               Component component)
Description copied from interface: MainFrameService
Adds the given Component to the frame.

Specified by:
addComponent in interface MainFrameService
Parameters:
title - title of the component to display
component - component to add

removeComponent

public final void removeComponent(Component component)
Description copied from interface: MainFrameService
Removes the given component from the frame.

Specified by:
removeComponent in interface MainFrameService
Parameters:
component - the component to remove

invokeLater

public final void invokeLater(Runnable runnable)
Description copied from interface: MainFrameService
Invokes the given runnable later.

Specified by:
invokeLater in interface MainFrameService
Parameters:
runnable - the runnable to invoke


Copyright © 2011-2013 Artenum. All Rights Reserved.