Package frege.j.Awt

Compiled: Wed Dec 05 00:08:00 PST 2012 from source file: frege/j/Awt.fr

Package Documentation

Definitions for native components found in packages java.awt, java.awt.event

Table of Content

Imports

Type Aliases

type AWTEvent = AWTEvent

a shorthand for AWTEventT in the IO Monad

type ActionEvent = ActionEvent

a shorthand for ActionEventT in the IO Monad

type ActionListener = ActionListener

a shorthand for ActionListenerT in the IO Monad

type Component = Component
type Container = Container
type Window = Window

Classes

class IsAWTEvent IsEventObject a => a

operations of a java.awt.AWTEvent

Known Instances

ActionEventT, AWTEventT

Member Functions

asAWTEvent :: IsAWTEvent a => a s -> AWTEventT s
pure native (java.awt.AWTEvent)
class IsActionEvent (IsEventObject a, IsAWTEvent a) => a

operations of a java.awt.event.ActionEvent

Known Instances

ActionEventT

Member Functions

asActionEvent :: IsActionEvent a => a s -> ActionEventT s
pure native (java.awt.event.ActionEvent)
getActionCommand :: IsActionEvent a => a s -> ST s String
native getActionCommand
getModifiers :: IsActionEvent a => a s -> ST s Int
native getModifiers
class IsActionListener a

operations for java.awt.event.ActionListener

Known Instances

ActionListenerT

Member Functions

actionPerformed :: (IsActionListener a, IsActionEvent e) => a s -> e s -> ST s ()

wrapper for IsActionListener.nativeActionPerformed that passes argument IsActionEvent.asActionEvent

asActionListener :: IsActionListener a => a s -> ActionListenerT s
pure native (java.awt.event.ActionListener)
nativeActionPerformed :: IsActionListener a => a s -> ActionEventT s -> ST s ()
native actionPerformed
class IsComponent d

Operations for sub classes of java.awt.Component

Known Instances

WindowT, ComponentT, ContainerT

Member Functions

asComponent :: IsComponent d => d RealWorld -> Component
pure native (java.awt.Component)
setEnabled :: IsComponent d => d s -> Bool -> ST s ()
native setEnabled
setVisible :: IsComponent d => d s -> Bool -> ST s ()
native setVisible
class IsContainer IsComponent d => d

Operations for java classes derived from java.awt.Container

Known Instances

WindowT, ContainerT

Member Functions

add :: (IsContainer d, IsComponent c) => d RealWorld -> c RealWorld -> Mutable ComponentT RealWorld
addComponent :: IsContainer d => d RealWorld -> Component -> Mutable ComponentT RealWorld
native add
asContainer :: IsContainer d => d RealWorld -> Container
pure native (java.awt.Container)
class IsWindow (IsComponent w, IsContainer w) => w

Operations for java classes derived from java.awt.Window

Known Instances

WindowT

Member Functions

asWindow :: IsWindow w => w RealWorld -> Window
pure native (java.awt.Window)
pack :: IsWindow w => w RealWorld -> IO ()
native pack

Instances

instance IsAWTEvent AWTEventT

Member Functions

asAWTEvent :: AWTEventT α -> AWTEventT α
pure native (java.awt.AWTEvent)

inherited from IsAWTEvent.asAWTEvent

asEventObject :: AWTEventT α -> EventObjectT α
pure native (java.util.EventObject)

inherited from Util.IsEventObject.asEventObject

instance IsActionEvent ActionEventT

Member Functions

asAWTEvent :: ActionEventT α -> AWTEventT α
pure native (java.awt.AWTEvent)

inherited from IsAWTEvent.asAWTEvent

asActionEvent :: ActionEventT α -> ActionEventT α
pure native (java.awt.event.ActionEvent)

inherited from IsActionEvent.asActionEvent

asEventObject :: ActionEventT α -> EventObjectT α
pure native (java.util.EventObject)

inherited from Util.IsEventObject.asEventObject

getActionCommand :: ActionEventT α -> ST α String
native getActionCommand

inherited from IsActionEvent.getActionCommand

getModifiers :: ActionEventT α -> ST α Int
native getModifiers

inherited from IsActionEvent.getModifiers

instance IsActionListener ActionListenerT

Member Functions

actionPerformed :: IsActionEvent β => ActionListenerT α -> β α -> ST α ()

inherited from IsActionListener.actionPerformed

asActionListener :: ActionListenerT α -> ActionListenerT α
pure native (java.awt.event.ActionListener)

inherited from IsActionListener.asActionListener

nativeActionPerformed :: ActionListenerT α -> ActionEventT α -> ST α ()
native actionPerformed

inherited from IsActionListener.nativeActionPerformed

instance IsComponent ComponentT

Member Functions

asComponent :: Component -> Component
pure native (java.awt.Component)

inherited from IsComponent.asComponent

setEnabled :: ComponentT α -> Bool -> ST α ()
native setEnabled

inherited from IsComponent.setEnabled

setVisible :: ComponentT α -> Bool -> ST α ()
native setVisible

inherited from IsComponent.setVisible

instance IsComponent ContainerT

Member Functions

asComponent :: Container -> Component
pure native (java.awt.Component)

inherited from IsComponent.asComponent

setEnabled :: ContainerT α -> Bool -> ST α ()
native setEnabled

inherited from IsComponent.setEnabled

setVisible :: ContainerT α -> Bool -> ST α ()
native setVisible

inherited from IsComponent.setVisible

instance IsComponent WindowT

Member Functions

asComponent :: Window -> Component
pure native (java.awt.Component)

inherited from IsComponent.asComponent

setEnabled :: WindowT α -> Bool -> ST α ()
native setEnabled

inherited from IsComponent.setEnabled

setVisible :: WindowT α -> Bool -> ST α ()
native setVisible

inherited from IsComponent.setVisible

instance IsContainer ContainerT

Member Functions

add :: IsComponent α => Container -> α RealWorld -> Mutable ComponentT RealWorld

inherited from IsContainer.add

addComponent :: Container -> Component -> Mutable ComponentT RealWorld
native add

inherited from IsContainer.addComponent

asContainer :: Container -> Container
pure native (java.awt.Container)

inherited from IsContainer.asContainer

instance IsContainer WindowT

Member Functions

add :: IsComponent α => Window -> α RealWorld -> Mutable ComponentT RealWorld

inherited from IsContainer.add

addComponent :: Window -> Component -> Mutable ComponentT RealWorld
native add

inherited from IsContainer.addComponent

asContainer :: Window -> Container
pure native (java.awt.Container)

inherited from IsContainer.asContainer

instance IsWindow WindowT

Member Functions

asWindow :: Window -> Window
pure native (java.awt.Window)

inherited from IsWindow.asWindow

pack :: Window -> IO ()
native pack

inherited from IsWindow.pack

Data Types

data AWTEventT s = native java.awt.AWTEvent

an object with compile timt type java.awt.AWTEvent

data ActionEventT s = native java.awt.event.ActionEvent

an object with compile timt type java.awt.event.ActionEvent

Member Functions

alt_mask :: Int
pure native java.awt.event.ActionEvent.ALT_MASK
ctrl_mask :: Int
pure native java.awt.event.ActionEvent.CTRL_MASK
meta_mask :: Int
pure native java.awt.event.ActionEvent.META_MASK
shift_mask :: Int
pure native java.awt.event.ActionEvent.SHIFT_MASK
data ActionListenerT s = native java.awt.event.ActionListener

an object with compile time type java.awt.event.ActionListener

Member Functions

new :: (ActionEventT s->ST s ()) -> Mutable ActionListenerT s
native frege.rt.SwingSupport.actionListener

make an action listener from a function

data ComponentT s = native java.awt.Component

a bare java.awt.Component

data ContainerT s = native java.awt.Container

a bare java.wat.Container

data WindowT s = native java.awt.Window

some java.awt.Window

Functions and Values by Type

Component -> Component

IsComponent_ComponentT.asComponent

Container -> Component -> Mutable ComponentT RealWorld

IsContainer_ContainerT.addComponent

Container -> Component

IsComponent_ContainerT.asComponent

Container -> Container

IsContainer_ContainerT.asContainer

Window -> Component -> Mutable ComponentT RealWorld

IsContainer_WindowT.addComponent

Window -> IO ()

IsWindow_WindowT.pack

Window -> Component

IsComponent_WindowT.asComponent

Window -> Container

IsContainer_WindowT.asContainer

Window -> Window

IsWindow_WindowT.asWindow

Int

ActionEventT.ctrl_mask, ActionEventT.alt_mask, ActionEventT.meta_mask, ActionEventT.shift_mask

(ActionEventT s->ST s ()) -> Mutable ActionListenerT s

ActionListenerT.new

AWTEventT α -> AWTEventT α

IsAWTEvent_AWTEventT.asAWTEvent

AWTEventT α -> EventObjectT α

IsAWTEvent_AWTEventT.asEventObject

ActionEventT α -> ST α String

IsActionEvent_ActionEventT.getActionCommand

ActionEventT α -> ST α Int

IsActionEvent_ActionEventT.getModifiers

ActionEventT α -> AWTEventT α

IsActionEvent_ActionEventT.asAWTEvent

ActionEventT α -> ActionEventT α

IsActionEvent_ActionEventT.asActionEvent

ActionEventT α -> EventObjectT α

IsActionEvent_ActionEventT.asEventObject

ActionListenerT α -> ActionEventT α -> ST α ()

IsActionListener_ActionListenerT.nativeActionPerformed

ActionListenerT α -> ActionListenerT α

IsActionListener_ActionListenerT.asActionListener

ComponentT α -> Bool -> ST α ()

IsComponent_ComponentT.setEnabled, IsComponent_ComponentT.setVisible

ContainerT α -> Bool -> ST α ()

IsComponent_ContainerT.setEnabled, IsComponent_ContainerT.setVisible

WindowT α -> Bool -> ST α ()

IsComponent_WindowT.setEnabled, IsComponent_WindowT.setVisible

IsComponent d => d RealWorld -> Component

IsComponent.asComponent

IsComponent α => Container -> α RealWorld -> Mutable ComponentT RealWorld

IsContainer_ContainerT.add

IsComponent α => Window -> α RealWorld -> Mutable ComponentT RealWorld

IsContainer_WindowT.add

IsContainer d => d RealWorld -> Component -> Mutable ComponentT RealWorld

IsContainer.addComponent

IsContainer d => d RealWorld -> Container

IsContainer.asContainer

IsWindow w => w RealWorld -> IO ()

IsWindow.pack

IsWindow w => w RealWorld -> Window

IsWindow.asWindow

IsAWTEvent a => a s -> AWTEventT s

IsAWTEvent.asAWTEvent

IsActionEvent a => a s -> ST s String

IsActionEvent.getActionCommand

IsActionEvent a => a s -> ST s Int

IsActionEvent.getModifiers

IsActionEvent a => a s -> ActionEventT s

IsActionEvent.asActionEvent

IsActionEvent β => ActionListenerT α -> β α -> ST α ()

IsActionListener_ActionListenerT.actionPerformed

IsActionListener a => a s -> ActionEventT s -> ST s ()

IsActionListener.nativeActionPerformed

IsActionListener a => a s -> ActionListenerT s

IsActionListener.asActionListener

IsComponent d => d s -> Bool -> ST s ()

IsComponent.setEnabled, IsComponent.setVisible

(IsContainer d, IsComponent c) => d RealWorld -> c RealWorld -> Mutable ComponentT RealWorld

IsContainer.add

(IsActionListener a, IsActionEvent e) => a s -> e s -> ST s ()

IsActionListener.actionPerformed

Valid HTML 4.01 Strict