JDK 11 jdk.hotspot.agent.jmod - Hotspot Agent Module

JDK 11 jdk.hotspot.agent.jmod is the JMOD file for JDK 11 Hotspot Agent module.

JDK 11 Hotspot Agent module compiled class files are stored in \fyicenter\jdk-11.0.1\jmods\jdk.hotspot.agent.jmod.

JDK 11 Hotspot Agent module compiled class files are also linked and stored in the \fyicenter\jdk-11.0.1\lib\modules JImage file.

JDK 11 Hotspot Agent module source code files are stored in \fyicenter\jdk-11.0.1\lib\src.zip\jdk.hotspot.agent.

You can click and view the content of each source code file in the list below.

✍: FYIcenter

com/sun/java/swing/action/StateChangeAction.java

/*
 * Copyright (c) 2000, 2008, Oracle and/or its affiliates. All rights reserved.
 * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 */


package com.sun.java.swing.action;

import java.awt.event.ItemEvent;
import java.awt.event.ItemListener;
import javax.swing.Icon;

// Referenced classes of package com.sun.java.swing.action:
//            DelegateAction

public abstract class StateChangeAction extends DelegateAction
    implements ItemListener
{

    public StateChangeAction(String name)
    {
        super(name, null);
        selected = false;
    }

    public StateChangeAction(String name, Icon icon)
    {
        super(name, icon);
        selected = false;
    }

    public boolean isSelected()
    {
        return selected;
    }

    public synchronized void setSelected(boolean newValue)
    {
        boolean oldValue = selected;
        if(oldValue != newValue)
        {
            selected = newValue;
            firePropertyChange("selected", Boolean.valueOf(oldValue), Boolean.valueOf(newValue));
        }
    }

    public void setItemListener(ItemListener listener)
    {
        this.listener = listener;
    }

    public ItemListener getItemListener()
    {
        return listener;
    }

    public void itemStateChanged(ItemEvent evt)
    {
        if(evt.getStateChange() == 1)
            setSelected(true);
        else
            setSelected(false);
        if(listener != null)
            listener.itemStateChanged(evt);
    }

    protected boolean selected;
    private ItemListener listener;
}

com/sun/java/swing/action/StateChangeAction.java

 

⇒ JDK 11 jdk.httpserver.jmod - HTTP Server Module

⇐ JDK 11 jdk.editpad.jmod - Edit Pad Module

⇑ Download and Use JDK 11

⇑⇑ FAQ for JDK (Java Development Kit)

2020-02-29, 71564👍, 0💬