Tabnine Logo
ActionViewConverter.getEntry
Code IndexAdd Tabnine to your IDE (free)

How to use
getEntry
method
in
bibliothek.gui.dock.action.view.ActionViewConverter

Best Java code snippets using bibliothek.gui.dock.action.view.ActionViewConverter.getEntry (Showing top 8 results out of 315)

origin: xyz.cofe/docking-frames-core

/**
 * Searches a converter for the given <code>action</code> and <code>target</code>.
 * @param <A> the type that the converter will produce
 * @param <D> the type of action needed as input
 * @param action the action that will be transformed
 * @param target the target platform
 * @return the converter or <code>null</code> if no converter is found
 */
protected <A, D extends DockAction> ViewGenerator<D,A> getConverter( ActionType<D> action, ViewTarget<? super A> target ){
  Entry<D, A> entry = getEntry( action, target );
  if( entry.clientGenerator != null )
    return entry.clientGenerator;
  
  if( entry.themeGenerator != null )
    return entry.themeGenerator;
  
  return entry.defaultGenerator;
}

origin: org.opentcs.thirdparty.dockingframes/docking-frames-core

/**
 * Searches a converter for the given <code>action</code> and <code>target</code>.
 * @param <A> the type that the converter will produce
 * @param <D> the type of action needed as input
 * @param action the action that will be transformed
 * @param target the target platform
 * @return the converter or <code>null</code> if no converter is found
 */
protected <A, D extends DockAction> ViewGenerator<D,A> getConverter( ActionType<D> action, ViewTarget<? super A> target ){
  Entry<D, A> entry = getEntry( action, target );
  if( entry.clientGenerator != null )
    return entry.clientGenerator;
  
  if( entry.themeGenerator != null )
    return entry.themeGenerator;
  
  return entry.defaultGenerator;
}

origin: xyz.cofe/docking-frames-core

/**
 * Registers a new {@link ViewGenerator} to this ActionViewConverter. The
 * generator will have the normal priority.
 * @param <A> the type of view created by the converter
 * @param <D> the type of action needed as input for the converter
 * @param action the type of actions needed as input
 * @param target the platform for which <code>converter</code> creates output
 * @param generator the generator to store, may be <code>null</code>
 */
public <A, D extends DockAction> void putTheme( ActionType<D> action, ViewTarget<A> target, ViewGenerator<D,A> generator ){
  if( action == null )
    throw new IllegalArgumentException( "Action must not be null" );
  
  if( target == null )
    throw new IllegalArgumentException( "Target must not be null" );
  
  Entry<D,A> entry = getEntry( action, target );
  entry.themeGenerator = generator;
}
origin: org.opentcs.thirdparty.dockingframes/docking-frames-core

/**
 * Registers a new {@link ViewGenerator} to this ActionViewConverter. The
 * generator will have the high priority.
 * @param <A> the type of view created by the converter
 * @param <D> the type of action needed as input for the converter
 * @param action the type of actions needed as input
 * @param target the platform for which <code>converter</code> creates output
 * @param generator the generator to store, may be <code>null</code>
 */
public <A, D extends DockAction> void putClient( ActionType<D> action, ViewTarget<A> target, ViewGenerator<D,A> generator ){
  if( action == null )
    throw new IllegalArgumentException( "Action must not be null" );
  
  if( target == null )
    throw new IllegalArgumentException( "Target must not be null" );
  
  Entry<D,A> entry = getEntry( action, target );
  entry.clientGenerator = generator;
}

origin: xyz.cofe/docking-frames-core

/**
 * Registers a new {@link ViewGenerator} to this ActionViewConverter. The
 * generator will have the high priority.
 * @param <A> the type of view created by the converter
 * @param <D> the type of action needed as input for the converter
 * @param action the type of actions needed as input
 * @param target the platform for which <code>converter</code> creates output
 * @param generator the generator to store, may be <code>null</code>
 */
public <A, D extends DockAction> void putClient( ActionType<D> action, ViewTarget<A> target, ViewGenerator<D,A> generator ){
  if( action == null )
    throw new IllegalArgumentException( "Action must not be null" );
  
  if( target == null )
    throw new IllegalArgumentException( "Target must not be null" );
  
  Entry<D,A> entry = getEntry( action, target );
  entry.clientGenerator = generator;
}

origin: xyz.cofe/docking-frames-core

/**
 * Registers a new {@link ViewGenerator} to this ActionViewConverter. The
 * generator will have the low priority.
 * @param <A> the type of view created by the converter
 * @param <D> the type of action needed as input for the converter
 * @param action the type of actions needed as input
 * @param target the platform for which <code>converter</code> creates output
 * @param generator the generator to store, may be <code>null</code>
 */
public <A, D extends DockAction> void putDefault( ActionType<D> action, ViewTarget<A> target, ViewGenerator<D,A> generator ){
  if( action == null )
    throw new IllegalArgumentException( "Action must not be null" );
  
  if( target == null )
    throw new IllegalArgumentException( "Target must not be null" );
  
  Entry<D,A> entry = getEntry( action, target );
  entry.defaultGenerator = generator;
}
origin: org.opentcs.thirdparty.dockingframes/docking-frames-core

/**
 * Registers a new {@link ViewGenerator} to this ActionViewConverter. The
 * generator will have the normal priority.
 * @param <A> the type of view created by the converter
 * @param <D> the type of action needed as input for the converter
 * @param action the type of actions needed as input
 * @param target the platform for which <code>converter</code> creates output
 * @param generator the generator to store, may be <code>null</code>
 */
public <A, D extends DockAction> void putTheme( ActionType<D> action, ViewTarget<A> target, ViewGenerator<D,A> generator ){
  if( action == null )
    throw new IllegalArgumentException( "Action must not be null" );
  
  if( target == null )
    throw new IllegalArgumentException( "Target must not be null" );
  
  Entry<D,A> entry = getEntry( action, target );
  entry.themeGenerator = generator;
}
origin: org.opentcs.thirdparty.dockingframes/docking-frames-core

/**
 * Registers a new {@link ViewGenerator} to this ActionViewConverter. The
 * generator will have the low priority.
 * @param <A> the type of view created by the converter
 * @param <D> the type of action needed as input for the converter
 * @param action the type of actions needed as input
 * @param target the platform for which <code>converter</code> creates output
 * @param generator the generator to store, may be <code>null</code>
 */
public <A, D extends DockAction> void putDefault( ActionType<D> action, ViewTarget<A> target, ViewGenerator<D,A> generator ){
  if( action == null )
    throw new IllegalArgumentException( "Action must not be null" );
  
  if( target == null )
    throw new IllegalArgumentException( "Target must not be null" );
  
  Entry<D,A> entry = getEntry( action, target );
  entry.defaultGenerator = generator;
}
bibliothek.gui.dock.action.viewActionViewConvertergetEntry

Javadoc

Searches an entry for the given action and target.

Popular methods of ActionViewConverter

  • createView
    Creates and sets up a new view. This method does nothing more than calling the method DockAction#cre
  • putTheme
  • putDefault
    Registers a new ViewGenerator to this ActionViewConverter. The generator will have the low priority.
  • getConverter
    Searches a converter for the given action and target.
  • <init>
    Creates a new ActionViewConverter

Popular in Java

  • Reading from database using SQL prepared statement
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • findViewById (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • JComboBox (javax.swing)
  • JLabel (javax.swing)
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now