예제 #1
0
파일: SApplet.java 프로젝트: jbundle/swing
  public void setupLookAndFeel(PropertyOwner propertyOwner) {
    if (m_screenField == null) return;
    // Now that the physical screen is set up, make sure the screeninfo has access to the screen
    // default properties
    ScreenInfo screenInfo = ((VAppletScreen) m_screenField.getScreenFieldView()).getScreenInfo();
    if (propertyOwner == null) propertyOwner = m_screenField.retrieveUserProperties(Params.SCREEN);
    screenInfo.setScreenProperties(propertyOwner, null);

    super.setupLookAndFeel(propertyOwner);
  }
예제 #2
0
파일: SApplet.java 프로젝트: jbundle/swing
 /** Free/Destroy the control. */
 public void free() {
   String servicePid = this.getProperty(BundleConstants.SERVICE_PID);
   if (m_screenField != null)
     if (m_screenField.getScreenFieldView() != null)
       if (m_screenField.getScreenFieldView().getControl() == this) {
         m_screenField
             .getScreenFieldView()
             .setControl(null); // keep ~ScreenField from deleteing me!
         m_screenField.free();
         m_screenField = null;
       }
   super.free();
   if (ClassServiceUtility.getClassService().getClassFinder(null) != null)
     if (!ClassServiceUtility.getClassService()
         .getClassFinder(null)
         .shutdownService(this.getClass().getName(), servicePid)) // Try again using my pid
     ClassServiceUtility.getClassService()
           .getClassFinder(null)
           .shutdownService(null, this); // Careful of circular calls
 }
예제 #3
0
파일: SApplet.java 프로젝트: jbundle/swing
  /**
   * STANDALONE APPLICATION SUPPORT The main() method acts as the applet's entry point when it is
   * run as a standalone application. It is ignored if the applet is run from within an HTML page.
   */
  public static void main(String args[]) {
    BaseApplet.main(args); // call super.main();
    // Create Toplevel Window to contain applet SApplet
    // Create the form, passing it the recordset
    FrameScreen frameScreen =
        new FrameScreen(null, null, null, ScreenConstants.DONT_DISPLAY_FIELD_DESC, null);

    // The following code starts the applet running within the frame window.
    // It also calls GetParameters() to retrieve parameter values from the
    // command line, and sets m_fStandAlone to true to prevent init() from
    // trying to get them from the HTML page.
    AppletScreen appletScreen =
        new AppletScreen(null, frameScreen, null, ScreenConstants.DONT_DISPLAY_FIELD_DESC, null);

    SApplet applet = (SApplet) appletScreen.getScreenFieldView().getControl();
    applet.init();
    applet.start();
  }