org.keridwen.core.ui.dockingframes
Interface MainFrameService

All Known Implementing Classes:
MainFrameDefault

public interface MainFrameService

A MainFrameService defines a service providing a frame in which components can be registered.


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.
 JFrame getFrame()
          Returns the JFrame managed by the service.
 void invokeLater(Runnable runnable)
          Invokes the given runnable later.
 void removeComponent(Component component)
          Removes the given component from the frame.
 

Method Detail

display

void display()
Displays the frame.


close

void close()
Closes the frame.


getFrame

JFrame getFrame()
Returns the JFrame managed by the service.

Returns:
the frame

addComponent

void addComponent(String title,
                  Component component)
Adds the given Component to the frame.

Parameters:
title - title of the component to display
component - component to add

removeComponent

void removeComponent(Component component)
Removes the given component from the frame.

Parameters:
component - the component to remove

invokeLater

void invokeLater(Runnable runnable)
Invokes the given runnable later.

Parameters:
runnable - the runnable to invoke


Copyright © 2011-2013 Artenum. All Rights Reserved.