FileDocCategorySizeDatePackage
PanelMediaTargetType.javaAPI DocJMF 2.1.1e2972Mon May 12 12:20:32 BST 2003jmapps.export

PanelMediaTargetType

public class PanelMediaTargetType extends JMPanel

Fields Summary
public static final String
TYPE_FILE
public static final String
TYPE_NETWORK
public static final String
TYPE_SCREEN
public static final String
TYPE_OTHER
private CheckboxGroup
groupTargetType
private Checkbox
radioFile
private Checkbox
radioNetwork
private Checkbox
radioScreen
Constructors Summary
public PanelMediaTargetType()



       
    	super ();

    	try {
    	    init ();
    	}
    	catch ( Exception exception ) {
    	    exception.printStackTrace ();
    	}
    
Methods Summary
public java.lang.StringgetType()

    	String		strType;

    	if ( radioFile.getState() )
    	    strType = TYPE_FILE;
    	else if ( radioNetwork.getState() )
    	    strType = TYPE_NETWORK;
    	else if ( radioScreen.getState() )
    	    strType = TYPE_SCREEN;
    	else
    	    strType = TYPE_OTHER;

    	return ( strType );
    
private voidinit()

    	Panel	panel;
    	Panel	panelDescription;
    	Panel	panelChoice;
        Panel   panelTemp;
    	Label	label;


    	this.setLayout ( new BorderLayout(12,12) );

    	panelDescription = new Panel ( new GridLayout(0,1) );
    	this.add ( panelDescription, BorderLayout.NORTH );

    	panelDescription.add ( new Label(JMFI18N.getResource("jmstudio.export.type.label1")) );
    	panelDescription.add ( new Label(JMFI18N.getResource("jmstudio.export.type.label2")) );

    	panel = new Panel ( new BorderLayout(6,6) );
    	this.add ( panel, BorderLayout.CENTER );

    	panelTemp = new Panel ( new BorderLayout(6,6) );
    	panel.add ( panelTemp, BorderLayout.NORTH );

    	panelChoice = new Panel ( new GridLayout(0,1,6,6) );
    	panelTemp.add ( panelChoice, BorderLayout.WEST );

    	groupTargetType = new CheckboxGroup ();

    	panelTemp = new Panel ( new BorderLayout(6,6) );
    	panelChoice.add ( panelTemp );
    	radioFile = new Checkbox ( TYPE_FILE, groupTargetType, true );
    	panelTemp.add ( radioFile, BorderLayout.WEST );

    	panelTemp = new Panel ( new BorderLayout(6,6) );
    	panelChoice.add ( panelTemp );
    	radioNetwork = new Checkbox ( TYPE_NETWORK, groupTargetType, false );
    	panelTemp.add ( radioNetwork, BorderLayout.WEST );

    	panelTemp = new Panel ( new BorderLayout(6,6) );
    	panelChoice.add ( panelTemp );
    	radioScreen = new Checkbox ( TYPE_SCREEN, groupTargetType, false );
    	panelTemp.add ( radioScreen, BorderLayout.WEST );