
jcurses.widgets.LayoutManager Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jcurses Show documentation
Show all versions of jcurses Show documentation
Internal Version of JCurses for use with Kolja. For projects please use http://sourceforge.net/projects/javacurses/
The newest version!
package jcurses.widgets;
/******************************************************
* This interface must be implemented bei layout managers,
* that layout widgets within widget containers.
*/
public interface LayoutManager {
/**
* The method layouts a widget within a container, dependet of layouting constraints.
*
* @param child widget to layout
* @param constraints layouting constraints
*/
public abstract void layout(Widget child, Object constraints);
/**
* The method is called by framework by binding the layout manager
* to an container. The implementing class must register, whether this is
* already bound or not, and throw an exception by a try to bind it second time.
* This is because the framework restricts, that a lyout manager can be bound only
* to one container at a time.
*
* @param container container to bind
*/
public abstract void bindToContainer(WidgetContainer container);
/**
* The method is called by framework by unbinding the layout manager
* from its container. The implementing class must register, whether this is
* already bound or not, and throw an exception by a try to bind it second time.
* This is because the framework restricts, that a lyout manager can be bound only
* to one container at a time.
*
*/
public abstract void unbindFromContainer();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy