bibliothek.gui.dock.station.flap
Class FlapDropInfo

java.lang.Object
  extended by bibliothek.gui.dock.station.flap.FlapDropInfo

public class FlapDropInfo
extends java.lang.Object

Information where to insert a Dockable into a FlapDockStation.

Author:
Benjamin Sigg

Field Summary
private  boolean combine
          true if a combination with the current popup should be made
private  Dockable dockable
          The Dockable which is inserted
private  boolean draw
          true if information should be painted
private  int index
          location between buttons
 
Constructor Summary
FlapDropInfo(Dockable dockable)
          Constructs a new info.
 
Method Summary
 Dockable getDockable()
          Gets the Dockable which will be dropped or moved on the station.
 int getIndex()
          Gets the index property.
 boolean isCombine()
          Returns the combine property.
 boolean isDraw()
          Gets the draw property
 void setCombine(boolean combine)
          Sets the combine property.
 void setDraw(boolean draw)
          Sets the draw property.
 void setIndex(int index)
          Sets the location where the Dockable will be inserted in respect to the list of buttons.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

index

private int index
location between buttons


combine

private boolean combine
true if a combination with the current popup should be made


draw

private boolean draw
true if information should be painted


dockable

private Dockable dockable
The Dockable which is inserted

Constructor Detail

FlapDropInfo

public FlapDropInfo(Dockable dockable)
Constructs a new info.

Parameters:
dockable - the Dockable which will be inserted
Method Detail

isCombine

public boolean isCombine()
Returns the combine property.

Returns:
the property
See Also:
setCombine(boolean)

setCombine

public void setCombine(boolean combine)
Sets the combine property. If this property is true, the station will combine the new Dockable with the current front-dockable.

Parameters:
combine - true if a combination should be made

getDockable

public Dockable getDockable()
Gets the Dockable which will be dropped or moved on the station.

Returns:
the source

isDraw

public boolean isDraw()
Gets the draw property

Returns:
the property
See Also:
setDraw(boolean)

setDraw

public void setDraw(boolean draw)
Sets the draw property. If this property is true, the station will paint some information where the Dockable will be inserted. This information is only a help to the user.

Parameters:
draw - true if the station should paint something

getIndex

public int getIndex()
Gets the index property.

Returns:
the property
See Also:
setIndex(int)

setIndex

public void setIndex(int index)
Sets the location where the Dockable will be inserted in respect to the list of buttons. This property will be ignored if combine is true.

Parameters:
index - the location