3.7.2 - Menu Area Style - JdlMenuAreaStyle

John W. Campbell

3.7.2.1 Introduction

This class provides a means of setting some non-default button style related parameters for a JdlMenuArea object.

Class, fields and constructors:

Class Details
Accessible Fields
Constructors

3.7.2.2 Class Details

Package:
Jdl.JdlView;
Class name:
JdlMenuAreaStyle
Class definition:
public class JdlMenuAreaStyle
Extends:
Object
Implements:
none
Actions:
none

3.7.2.3 Accessible Fields

The following accessible fields have been defined:

public final static int menu_surround_width
Menu area surround width (menu_surround_width): Clear space around the edge of the menu area items & title at either side (default = 4).
public final static int menu_surround_height
Menu area surround height (menu_surround_height): Clear space around the edge of the menu area items & title at the top and bottom (default = 4).
public final static int border_type
Button border type (border_type): May be JdlButton.INOUT (default) or JdlButton.SOLID.
public final static int border_thickness
Button border thickness (border_thickness): Must be >=1 (default = 3).
public final static int min_but_margin_w
Minimum button margin width (min_but_margin_w): minimum distance between button border and button text string at either side (default = 2).
public final static int max_but_margin_w
Maximum button margin width (max_but_margin_w): maximum distance between button border and button text string at either side (default = 8).
public final static int min_but_margin_h
Minimum button margin height (min_but_margin_h): minimum distance between button border and button text string at top and bottom (default = 2).
public final static int max_but_margin_h
Maximum button margin height (max_but_margin_h): maximum distance between button border and button text string at top and bottom (default = 12).
public final static int width_type
Button widths option (width_type): May be JdlMenuArea.FULL_WIDTH (default) or JdlMenuArea.ITEMS_WIDTH. For full width, the button sizes are always those based on the maximum string width allowed; for items width, the button sizes are based on the maximum string length from the current set of item strings being displayed.

3.7.2.4 Constructors

3.7.2.4.1 Introduction

One constructor is available.

Constructor:

Default constructor

3.7.2.4.2 Default constructor

Constructs a JdlMenuAreaStyle object. Any non-default style parameters are set via the public variables and the object is then passed as a parameter when the JdlMenuArea object is constructed.

Constructor Definition:
public JdlMenuAreaStyle()
Parameters List:
none

⇑ Up 3   ⇑ Up 2   ⇑ Up 1   ⇑ Top of this