Example usage for org.apache.wicket Component isEnabledInHierarchy

List of usage examples for org.apache.wicket Component isEnabledInHierarchy

Introduction

In this page you can find the example usage for org.apache.wicket Component isEnabledInHierarchy.

Prototype

public boolean isEnabledInHierarchy() 

Source Link

Document

Calculates enabled state of the component taking its hierarchy into account.

Usage

From source file:org.opensingular.form.wicket.behavior.DisabledClassBehavior.java

License:Apache License

public boolean isEnabled(Component component) {
    return !component.isEnabledInHierarchy();
}

From source file:org.wicketstuff.datetime.extensions.yui.calendar.DatePicker.java

License:Apache License

/**
 * {@inheritDoc}//ww  w . ja  v  a2s .co m
 */
@Override
public boolean isEnabled(final Component component) {
    return component.isEnabledInHierarchy();
}