All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jbundle.main.user.db.UserJavaField Maven / Gradle / Ivy

There is a newer version: 1.0.11
Show newest version
/**
 * @(#)UserJavaField.
 * Copyright © 2013 jbundle.org. All rights reserved.
 * GPL3 Open Source Software License.
 */
package org.jbundle.main.user.db;

import java.util.*;

import org.jbundle.base.db.*;
import org.jbundle.thin.base.util.*;
import org.jbundle.thin.base.db.*;
import org.jbundle.base.db.event.*;
import org.jbundle.base.db.filter.*;
import org.jbundle.base.field.*;
import org.jbundle.base.field.convert.*;
import org.jbundle.base.field.event.*;
import org.jbundle.base.model.*;
import org.jbundle.base.util.*;
import org.jbundle.model.*;
import org.jbundle.model.db.*;
import org.jbundle.model.screen.*;

/**
 *  UserJavaField - .
 */
public class UserJavaField extends StringPopupField
{
    /**
     * Default constructor.
     */
    public UserJavaField()
    {
        super();
    }
    /**
     * Constructor.
     * @param record The parent record.
     * @param strName The field name.
     * @param iDataLength The maximum string length (pass -1 for default).
     * @param strDesc The string description (usually pass null, to use the resource file desc).
     * @param strDefault The default value (if object, this value is the default value, if string, the string is the default).
     */
    public UserJavaField(Record record, String strName, int iDataLength, String strDesc, Object strDefault)
    {
        this();
        this.init(record, strName, iDataLength, strDesc, strDefault);
    }
    /**
     * Initialize class fields.
     */
    public void init(Record record, String strName, int iDataLength, String strDesc, Object strDefault)
    {
        super.init(record, strName, iDataLength, strDesc, strDefault);
    }
    /**
     * Get the conversion Map.
     */
    public String[][] getPopupMap()
    {
        String string[][] = {
            {UserInfo.DEFAULT, "Use default Java"}, 
            {UserInfo.WEBSTART, "Java Web Start"}, 
            {UserInfo.PLUG_IN, "JDK Plug-in"}, 
            {UserInfo.YES, "Java Applet Tags"},
            {UserInfo.NO, "No Java - Use HTML"}
        };
        return string;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy