本文整理了Java中java.awt.Container.isEnabled()
方法的一些代码示例,展示了Container.isEnabled()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Container.isEnabled()
方法的具体详情如下:
包路径:java.awt.Container
类名称:Container
方法名:isEnabled
暂无
代码示例来源:origin: net.sf.ingenias/editor
public void paint(Graphics g ) {
boolean isEnabled = getParent().isEnabled();
代码示例来源:origin: lbalazscs/Pixelitor
!(rootAncestor.isShowing() &&
rootAncestor.isFocusable() &&
rootAncestor.isEnabled()))
代码示例来源:origin: com.github.arnabk/pgslookandfeel
public void paint(Graphics g) {
boolean leftToRight = PgsUtils.isLeftToRight(this);
boolean isEnabled = getParent().isEnabled();
boolean isPressed = getModel().isPressed();
代码示例来源:origin: net.sourceforge.mydoggy/mydoggy-plaf
public static Component findComponentAt(Container cont, int x, int y, boolean ignoreEnabled, boolean ignoreGlassPane) {
if (!((cont instanceof CellRendererPane) || (cont.getParent() instanceof CellRendererPane)) &&
!(cont.contains(x, y) /*&& cont.isVisible() */ && (ignoreEnabled || cont.isEnabled()))) {
return null;
代码示例来源:origin: com.eas.platypus/platypus-js-scalable-widget
protected Component findComponentAtXY(Container root, int x, int y, boolean ignoreEnabled, boolean stopAtPopupPanel, Component toExclude) {
synchronized (getTreeLock()) {
if (!(root.contains(x, y) && (ignoreEnabled || root.isEnabled()))) {
return null;
} else if (root.contains(x, y) && stopAtPopupPanel && root instanceof ScalablePopup.ScalablePopupPanel) {
代码示例来源:origin: io.ultreia.java4all.jaxx/jaxx-runtime
cont.isVisible() && cont.isEnabled())) {
return null;
代码示例来源:origin: org.nuiton.jaxx/jaxx-runtime-swing
if (!((x >= 0) && (x < width) && (y >= 0) && (y < height) && cont.isVisible() && cont.isEnabled())) {
return null;
代码示例来源:origin: javax.help/javahelp
private static Component findComponentAt(Container cont, int width, int height, int x, int y) {
synchronized (cont.getTreeLock()) {
if (!((x >= 0) && (x < width) && (y >= 0) && (y < height) && cont.isVisible() && cont.isEnabled())) {
return null;
代码示例来源:origin: org.nuiton.jaxx/jaxx-runtime
cont.isVisible() && cont.isEnabled())) {
return null;
代码示例来源:origin: ch.unibas.cs.gravis/scalismo-native-stub
/**
* Traverse to the next forward or backward component using the
* container's FocusTraversalPolicy.
*
* @param comp the assumed current focuse component
* @param forward if true, returns the next focus component, otherwise the previous one.
* @return
*/
public static Component getNextFocus(Component comp, final boolean forward) {
Container focusContainer = comp.getFocusCycleRootAncestor();
while ( focusContainer != null &&
( !focusContainer.isShowing() || !focusContainer.isFocusable() || !focusContainer.isEnabled() ) )
{
comp = focusContainer;
focusContainer = comp.getFocusCycleRootAncestor();
}
Component next = null;
if (focusContainer != null) {
final FocusTraversalPolicy policy = focusContainer.getFocusTraversalPolicy();
next = forward ? policy.getComponentAfter(focusContainer, comp) : policy.getComponentBefore(focusContainer, comp);
if (next == null) {
next = policy.getDefaultComponent(focusContainer);
}
}
return next;
}
内容来源于网络,如有侵权,请联系作者删除!