javax.swing.JRadioButton#doClick ( )源码实例Demo

下面列出了javax.swing.JRadioButton#doClick ( ) 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。

/**
 *
 */
public void refreshView() {
    Enumeration buttons = includedFractions_buttonGroup.getElements();
    while (buttons.hasMoreElements()) {
        JRadioButton b = (JRadioButton) buttons.nextElement();
        if (b.isSelected()) {
            b.doClick();
            break;
        }
    }

    if (((TripoliSessionRawDataView) tripoliSessionRawDataView).isSAVED_YAXIS_IS_UNIFORM()) {
        uniformYaxis.doClick();
    } else {
        independentYaxis.doClick();
    }

    if (((TripoliSessionRawDataView) tripoliSessionRawDataView).getSAVED_DATA_USED_FOR_SCALING().equals(IncludedTypeEnum.ALL)) {
        allDataUsedForScaling.doClick();
    } else {
        includedDataUsedForScaling.doClick();
    }

}
 
/**
 *
 */
public void refreshView() {
    Enumeration buttons = includedFractions_buttonGroup.getElements();
    while (buttons.hasMoreElements()) {
        JRadioButton b = (JRadioButton) buttons.nextElement();
        if (b.isSelected()) {
            b.doClick();
            break;
        }
    }

    if (((TripoliSessionRawDataView) tripoliSessionRawDataView).isSAVED_YAXIS_IS_UNIFORM()) {
        uniformYaxis.doClick();
    } else {
        independentYaxis.doClick();
    }

    if (((TripoliSessionRawDataView) tripoliSessionRawDataView).getSAVED_DATA_USED_FOR_SCALING().equals(IncludedTypeEnum.ALL)) {
        allDataUsedForScaling.doClick();
    } else {
        includedDataUsedForScaling.doClick();
    }

}
 
源代码3 项目: cropplanning   文件: HSQLSettings.java
public HSQLSettings() {
    super( HSQLDB.class );
    CPSModule.debug( "HSQLSettings", "using pref node:" + HSQLDB.class.toString() );
    
    rdoUseGlobalDir = new JRadioButton( "Use global output directory", false );
    rdoUseGlobalDir.addItemListener(this);
    rdoUseCustomDir = new JRadioButton( "Use other directory:", false );
    rdoUseCustomDir.addItemListener(this);
    ButtonGroup bg = new ButtonGroup();
    bg.add( rdoUseCustomDir );
    bg.add( rdoUseGlobalDir );
    
    lblCustomOutDir = new JLabel();
    
    flchCustomDir = new JFileChooser();
    flchCustomDir.setFileSelectionMode( JFileChooser.DIRECTORIES_ONLY );
    
    btnCustomDir = new JButton( "Choose Output Directory" );
    btnCustomDir.addActionListener(this);
    
    buildConfigPanel();
    rdoUseGlobalDir.doClick();
    
}
 
源代码4 项目: ib-controller   文件: GatewayLoginFrameHandler.java
private void switchToIBAPI(Window window) throws IBControllerException {
    JRadioButton button = SwingUtils.findRadioButton(window, "IB API");
    if (button == null) button = SwingUtils.findRadioButton(window, "TWS/API") ;
    if (button == null) throw new IBControllerException("IB API radio button");
    
    if (! button.isSelected()) button.doClick();
}
 
源代码5 项目: ib-controller   文件: GatewayLoginFrameHandler.java
private void switchToFIX(Window window) throws IBControllerException {
    JRadioButton button = SwingUtils.findRadioButton(window, "FIX CTCI");
    if (button == null) throw new IBControllerException("FIX CTCI radio button");
    
    if (! button.isSelected()) button.doClick();
}
 
源代码6 项目: IBC   文件: SwingUtils.java
/**
 * Sets or clears the specified JRadioButton .
 * @param window
 * the window in which to search for the required JRadioButton 
 * @param buttonText
 * the label for the required JRadioButton 
 * @param value
 * true to set the JRadioButton ; false to clear it
 * @return
 * true if the JRadioButton  was found; otherwise false
 */
static boolean setRadioButtonSelected(Window window, String buttonText) {
    final JRadioButton rb = findRadioButton(window, buttonText);
    if (rb == null) return false;

    if (rb.isSelected()) return true;

    rb.doClick();
    return true;
}
 
源代码7 项目: ib-controller   文件: SwingUtils.java
/**
 * Sets or clears the specified JRadioButton .
 * @param window
 * the window in which to search for the required JRadioButton 
 * @param buttonText
 * the label for the required JRadioButton 
 * @param value
 * true to set the JRadioButton ; false to clear it
 * @return
 * true if the JRadioButton  was found; otherwise false
 */
static boolean setRadioButtonSelected(Window window, String buttonText) {
    final JRadioButton rb = findRadioButton(window, buttonText);
    if (rb == null) return false;

    if (rb.isSelected()) return true;

    rb.doClick();
    return true;
}