/** * Creates a key for a placeholder leaf. * @param placeholders the placeholders to store * @param placeholderMap placeholder information of a child {@link DockStation} * @param nodeId the unique identifier of the new node, can be -1 * @return the new key */ public Key put( Path[] placeholders, PlaceholderMap placeholderMap, long nodeId ){ return put( null, null, placeholders, placeholderMap, nodeId ); }
/** * Creates a key for a placeholder leaf. * @param placeholders the placeholders to store * @param placeholderMap placeholder information of a child {@link DockStation} * @param nodeId the unique identifier of the new node, can be -1 * @return the new key */ public Key put( Path[] placeholders, PlaceholderMap placeholderMap, long nodeId ){ return put( null, null, placeholders, placeholderMap, nodeId ); }
/** * Creates a key for the set <code>dockables</code>. * @param dockables the elements for which a key is requested * @param selected the element that should be selected, can be <code>null</code> * @return the new key */ public Key put( D[] dockables, D selected ){ return put( dockables, selected, -1 ); }
/** * Creates a key for the set <code>dockables</code>. * @param dockables the elements for which a key is requested * @param selected the element that should be selected, can be <code>null</code> * @return the new key */ public Key put( D[] dockables, D selected ){ return put( dockables, selected, -1 ); }
/** * Creates a key for a placeholder leaf. * @param placeholders the placeholders to store * @param placeholderMap placeholder information of a child {@link DockStation} * @return the new key */ public Key put( Path[] placeholders, PlaceholderMap placeholderMap ){ return put( placeholders, placeholderMap, -1 ); }
/** * Creates a key for the set <code>dockables</code>. * @param dockables the elements for which a key is requested * @param selected the element that should be selected, can be <code>null</code> * @param nodeId a unique identifier for this node, may be -1 * @return the new key */ public Key put( D[] dockables, D selected, long nodeId ){ return put( dockables, selected, null, null, nodeId ); }
/** * Creates a key for the set <code>dockables</code>. * @param dockables the elements for which a key is requested * @return the new key */ public Key put( D... dockables ){ return put( dockables, null ); }
/** * Creates a key for the set <code>dockables</code>. * @param dockables the elements for which a key is requested * @param selected the element that should be selected, can be <code>null</code> * @param nodeId a unique identifier for this node, may be -1 * @return the new key */ public Key put( D[] dockables, D selected, long nodeId ){ return put( dockables, selected, null, null, nodeId ); }
/** * Creates a key for a placeholder leaf. * @param placeholders the placeholders to store * @param placeholderMap placeholder information of a child {@link DockStation} * @return the new key */ public Key put( Path[] placeholders, PlaceholderMap placeholderMap ){ return put( placeholders, placeholderMap, -1 ); }
/** * Sets <code>dockable</code> as root, and returns a key to the root. * @param dockable the new root * @return the key to the root */ public Key root( D dockable ){ root = put( array( dockable )); return root; }
/** * Sets <code>dockable</code> as root, and returns a key to the root. * @param dockable the new root * @return the key to the root */ public Key root( D dockable ){ root = put( array( dockable )); return root; }
/** * Creates a key for the leaf <code>dockable</code>. * @param dockable the element for which a key is requested * @param nodeId the unique identifier for this node, can be -1 * @return the new key */ public Key put( D dockable, long nodeId ){ D[] array = array( 1 ); array[0] = dockable; return put( array, null, nodeId ); }
/** * Adds two elements vertically. * @param top the top element * @param bottom the bottom element * @param divider how much space the first element gets in respect * to the second element. Must be between 0 and 1. * @return a key of the combination of the two elements */ public Key vertical( D top, D bottom, double divider ){ return vertical( put( array( top ) ), put( array( bottom ) ), divider ); }
/** * Adds two elements horizontally. * @param left the left element * @param right the right element * @param divider how much space the first element gets in respect * to the second element. Must be between 0 and 1. * @return a key of the combination of the two elements */ public Key horizontal( D left, D right, double divider ){ return horizontal( put( array( left ) ), put( array( right ) ), divider ); }
/** * Adds two elements vertically. * @param top the top element * @param bottom the bottom element * @param divider how much space the first element gets in respect * to the second element. Must be between 0 and 1. * @return a key of the combination of the two elements */ public Key vertical( D top, D bottom, double divider ){ return vertical( put( array( top ) ), put( array( bottom ) ), divider ); }
/** * Adds two elements horizontally. * @param left the left element * @param right the right element * @param divider how much space the first element gets in respect * to the second element. Must be between 0 and 1. * @return a key of the combination of the two elements */ public Key horizontal( D left, D right, double divider ){ return horizontal( put( array( left ) ), put( array( right ) ), divider ); }