Package com.hk.lua
Enum LuaLibrarySwing
- All Implemented Interfaces:
com.hk.func.BiConsumer<com.hk.lua.Environment,com.hk.lua.LuaObject>
,com.hk.lua.Lua.LuaMethod
,Serializable
,Comparable<LuaLibrarySwing>
,java.lang.constant.Constable
public enum LuaLibrarySwing extends Enum<LuaLibrarySwing> implements com.hk.func.BiConsumer<com.hk.lua.Environment,com.hk.lua.LuaObject>, com.hk.lua.Lua.LuaMethod
This library opens the
javax.swing
package to easily
manipulate JFrames, JPanels, and JComponents. Can be used with
LuaLibraryG2D
to create "custom" components.-
Nested Class Summary
-
Method Summary
Modifier and Type Method Description void
accept(com.hk.lua.Environment env, com.hk.lua.LuaObject table)
com.hk.lua.LuaObject
call(com.hk.lua.LuaInterpreter interp, com.hk.lua.LuaObject[] args)
static LuaLibrarySwing
valueOf(String name)
Returns the enum constant of this type with the specified name.static LuaLibrarySwing[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
call
public com.hk.lua.LuaObject call(com.hk.lua.LuaInterpreter interp, com.hk.lua.LuaObject[] args)- Specified by:
call
in interfacecom.hk.lua.Lua.LuaMethod
-
accept
public void accept(com.hk.lua.Environment env, com.hk.lua.LuaObject table)- Specified by:
accept
in interfacecom.hk.func.BiConsumer<com.hk.lua.Environment,com.hk.lua.LuaObject>
-