Mig-infocom MiG Calendar JavaBeans Guide User Manual

Browse online or download User Manual for Software Mig-infocom MiG Calendar JavaBeans Guide. MiG InfoCom MiG Calendar JavaBeans Guide User Manual

  • Download
  • Add to my manuals
  • Print

Summary of Contents

Page 1 - MiG Calendar™ JavaBeans Guide

MiG InfoCom ABMiG Calendar™ JavaBeans Guide______________________________________________________________Release 6MiG Calendar JavaBeans Guide Page 1

Page 2

MiG InfoCom ABJBuilder XWorks flawlessly. Error handling is not as good as for those above.MiG Calendar JavaBeans Guide Page 10 / 45Illustration 2: Ne

Page 3 - Table of Contents

MiG InfoCom ABJBuilder 2005Due to a JBuilder 2005 bug (Report # 9476) that prevents custom components to work in many situations MiG Calendar componen

Page 4

MiG InfoCom ABVisual Editor works with MiG Calendar. It should be noted though that VE doesn't have the possibility to have custom beans on its J

Page 5

MiG InfoCom ABtheme though, this has to be set manually if the default look doesn’t fulfills the requirements. It is easy to tweak and build in functi

Page 6 - MiG Calendar Tutorial

MiG InfoCom ABapproach is chosen. See more about this as the “Mixing core-level …” below.Installing the JavaBean ComponentsTo use the MiG Calendar com

Page 7 - Bug Reports

MiG InfoCom ABsense without being connected to an instance of this class. It represents the date area and holds references to some other beans.DateHea

Page 8 - Examples

MiG InfoCom ABthe framework. It contains a few properties to tweak how the data should be generated, including the possibility to add the generated ac

Page 9 - NetBeans

MiG InfoCom ABfor information about the properties.DateSpinnerBeanThis is a very customizable spinner component that holds a date/time or a part there

Page 10 - JBuilder X

MiG InfoCom ABmonth(s) and year(s) views are all implemented by this bean; it is only configured in different ways. This means that the structure has

Page 11 - JBuilder 2005

MiG InfoCom ABmake all date calculations for the graphical mapping of date/time to pixels. Cells can be of different sizes, in both dimensions, to mak

Page 12 - MiG Calendar Approaches

MiG InfoCom ABMiG InfoCom ABS:t Olofsgatan 28a753 32 UppsalaSwedenwww.miginfocom.comwww.migcomponents.comCOPYRIGHT © MiG InfoCom AB.All rights reserve

Page 13 - Core Component

MiG InfoCom ABThis bean divides normal rows, for the sake of layout, into regular and compressed. (in the core of the component you can create any num

Page 14 - The JavaBean Classes

MiG InfoCom ABSub rows are given the row number the same way as a JTree get its row number. This means that folder rows will always be before its chil

Page 15 - DatePickerBean

MiG InfoCom ABYou create the DateHeaderBean as you would any other non-visual bean, normally by dragging it to the GUI workspace. Then you set the hea

Page 16 - PrintSpecificationBean

MiG InfoCom ABEvery row in the date header is specified by an element in the property headerRows. For every row there are properties to specify how th

Page 17 - How Things Are Connected

MiG InfoCom ABLabel Repetition – If selected this row will only draw the labels that are specified. Can for instance be used to draw only ever second

Page 18 - DateGrid Structure

MiG InfoCom ABthe DateAreaBean. Since the category header will always decorate the secondary dimension the position is a function of the primaryDimens

Page 19 - MiG InfoCom AB

MiG InfoCom ABThe text drawn in the labels is defined with a template text. Default is “$gridRowName$” which will be expanded with the name of the sub

Page 20 - Sub Rows

MiG InfoCom ABIt is important to understand how this works in order to create anything but a very basic category header. If you understand the concept

Page 21 - Adding Date Headers

MiG InfoCom ABalso filtered on sub row type. There are five types of filter:• All – Applies to all types of rows• All Folders – Apples to all types of

Page 22

MiG InfoCom ABExample 3DefaultSubRowLevel 0 – Applies to All Folders. Applies to row 0-1.DefaultSubRowLevel 1 – Applies to All Folders. Applies to row

Page 23

MiG InfoCom ABTable of ContentsMiG Calendar Tutorial...6Preface...

Page 24 - Adding a Category Header

MiG InfoCom ABlabel.Label Repetition – If selected it constrains this element (SubRowLevel) to certain rows. How this works can be read in the Technic

Page 25

MiG InfoCom ABdocumented in the API JavaDoc for the class.All properties are in two different versions, one for Folders and one for a Leafs (a leaf is

Page 26 - SubRowLevels and HeaderRows

MiG InfoCom ABDate Spinners/Combos and Date GroupsThere are two kinds of date spinners. One is a normal JComboBox and can't be configured much re

Page 27

MiG InfoCom ABthis. It will create random activities for a selected date/time range and optionally create a category tree. Many aspects of this creati

Page 28 - Some examples:

MiG InfoCom ABThe rest of the properties for DemoDataBean are pretty straight forward and will not be reiterated here. For more info on these properti

Page 29

MiG InfoCom ABthese types of properties works. Basically they define a rectangle relative to another rectangle in a very flexible way. For instance do

Page 30 - The CategoryTreeBean

MiG InfoCom ABThe look of the combo part (not popup) is automatically configured to look like the current Look&Feel. Since it is only possible to

Page 31

MiG InfoCom ABMinimumPopupSize, PreferredPopupSize and MaximumPopupSize together with the preferred size of the DateAreaBean itself if they are are nu

Page 32

MiG InfoCom ABhandles the optional scroll bars.Since the DateAreaBean is a DateAreaContainer you will normally always have an instance of this class d

Page 33 - The Categories property

MiG InfoCom ABmethod CategoryDepository.getRoot(). Use this root to handle the tree much like how you would with a normal JTree. The Category nodes in

Page 34

MiG InfoCom ABDateHeaderBean... 15CategoryHeaderBean...

Page 35 - Sub Shapes

MiG InfoCom ABare sub classes of AbstractActivity. The changed Activity is set at the source in the generated event.• Add a PropertyChangeListener to

Page 36 - Illustration 15:

MiG InfoCom ABAnother way that can be used if there are different looks (e.g. colors) depending on the Category the activities belongs to (an activity

Page 37 - Advanced Topics

MiG InfoCom ABpublic static final String DEFAULT_SHADOW_SHAPE_NAMEYet another way is to provide different AShapes (or rather RootAShapes) for differen

Page 38

MiG InfoCom ABrepaint them selves accordingly. This is a very powerful design that makes fast and resource effective user interactions possible with a

Page 39 - • Add a static listener with

MiG InfoCom AB}public void gridChanged(PropertyChangeEvent e) {} // Not interestedpublic void dispose() {} // Nothing to dispose of};dateArea.addDeco

Page 40

MiG InfoCom ABIf you will work with the beans documented in this guide but still want some of the functionality from the more advanced core; that is e

Page 41

MiG InfoCom ABAdding a Date Picker Component... 35Advanced Topics... 37

Page 42

MiG InfoCom ABMiG Calendar TutorialPrefaceThis document aims at providing enough information to get started using the MiG Calendar JavaBeans component

Page 43

MiG InfoCom AB www.migcalendar.com Bug ReportsPlease submit a support ticket.MiG Calendar JavaBeans Guide Page 7 / 45

Page 44 - Even More Advanced Topics

MiG InfoCom ABIntroductionMiG Calendar's Visual JavaBean(s) makes the component very easy to use and configure, especially in combination with a

Page 45

MiG InfoCom ABThe support for handling advanced beans visually in a designer is somewhat different for every IDE (Integrated Development Environments)

Comments to this Manuals

No comments