congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
IBehavior.isEnabled
Code IndexAdd Tabnine to your IDE (free)

How to use
isEnabled
method
in
org.apache.wicket.behavior.IBehavior

Best Java code snippets using org.apache.wicket.behavior.IBehavior.isEnabled (Showing top 5 results out of 315)

origin: org.wamblee/wamblee-wicket-components

@Override
public boolean isEnabled(Component aComponent) {
  for (IBehavior behavior : behaviors) {
    if (!behavior.isEnabled(aComponent)) {
      return false;
    }
  }
  return true;
}
origin: org.ops4j.pax.wicket/pax-wicket-service

/**
 * Components are allowed to reject behavior modifiers.
 * 
 * @param behavior
 * @return False, if the component should not apply this behavior
 */
protected boolean isBehaviorAccepted(final IBehavior behavior)
{
  // Ignore AttributeModifiers when FLAG_IGNORE_ATTRIBUTE_MODIFIER is set
  if ((behavior instanceof AttributeModifier) &&
    (getFlag(FLAG_IGNORE_ATTRIBUTE_MODIFIER) != false))
  {
    return false;
  }
  return behavior.isEnabled(this);
}
origin: org.apache.wicket/com.springsource.org.apache.wicket

/**
 * Components are allowed to reject behavior modifiers.
 * 
 * @param behavior
 * @return False, if the component should not apply this behavior
 */
protected boolean isBehaviorAccepted(final IBehavior behavior)
{
  // Ignore AttributeModifiers when FLAG_IGNORE_ATTRIBUTE_MODIFIER is set
  if ((behavior instanceof AttributeModifier) &&
    (getFlag(FLAG_IGNORE_ATTRIBUTE_MODIFIER) != false))
  {
    return false;
  }
  return behavior.isEnabled(this);
}
origin: org.ops4j.pax.wicket/pax-wicket-service

if (!behavior.isEnabled(component))
origin: org.ops4j.pax.wicket/pax-wicket-service

if (behavior.isEnabled(this))
org.apache.wicket.behaviorIBehaviorisEnabled

Javadoc

Called when a components is rendering and wants to render this behavior. If false is returned this behavior will be ignored.

Popular methods of IBehavior

  • onComponentTag
    Called any time a component that has this behavior registered is rendering the component tag.
  • afterRender
    Called when a component that has this behavior coupled was rendered.
  • beforeRender
    Called when a component is about to render.
  • bind
    Bind this handler to the given component. This method is called by the host component immediately af
  • detach
    Allows the behavior to detach any state it has attached during request processing.
  • exception
    In case an unexpected exception happened anywhere between onComponentTag() and rendered(), onExcepti
  • getStatelessHint
    This method returns false if the behavior generates a callback url (for example ajax behaviors)
  • isTemporary
    Specifies whether or not this behavior is temporary. Temporary behaviors are removed at the end of r

Popular in Java

  • Finding current android device location
  • onCreateOptionsMenu (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • setScale (BigDecimal)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • JTable (javax.swing)
  • Top 25 Plugins for Webstorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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