JPH08166874A - Structuring method for gui - Google Patents

Structuring method for gui

Info

Publication number
JPH08166874A
JPH08166874A JP6310116A JP31011694A JPH08166874A JP H08166874 A JPH08166874 A JP H08166874A JP 6310116 A JP6310116 A JP 6310116A JP 31011694 A JP31011694 A JP 31011694A JP H08166874 A JPH08166874 A JP H08166874A
Authority
JP
Japan
Prior art keywords
class
instance
gui
component
list
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP6310116A
Other languages
Japanese (ja)
Inventor
Satomi Fukazawa
里美 深沢
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Meidensha Corp
Meidensha Electric Manufacturing Co Ltd
Original Assignee
Meidensha Corp
Meidensha Electric Manufacturing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Meidensha Corp, Meidensha Electric Manufacturing Co Ltd filed Critical Meidensha Corp
Priority to JP6310116A priority Critical patent/JPH08166874A/en
Publication of JPH08166874A publication Critical patent/JPH08166874A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE: To provide a difference programming function and facilitate software development. CONSTITUTION: The object management of a GUI server is enabled to have an object-oriented managing function and constitute a composite class in which other component classes are taken. To constitute the composite class, the class name and relative position of a component class to be taken in are held at a class attribute part and a list of component object names is held at an instance attribute part. For the construction and destruction of the composite object, the constructor and destructor of an instance method are provided with functions for automatically constructing and destructing a component object respectively, in the case of structuring the object-oriented GUI with a GUI structuring tool.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、コンピュータソフトウ
ェアにおけるグラフィカル・ユーザ・インタフェース
(GUI)の構築方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method of constructing a graphical user interface (GUI) in computer software.

【0002】[0002]

【従来の技術】この種の従来方式には、ウィンドウ枠、
ボタン、テキストボックス等のGUI部品をクラスとし
て用意し、ビジュアルな環境で会話的に操作することに
よりGUI構築を行うツールがある。
2. Description of the Related Art A conventional method of this type includes a window frame,
There is a tool that prepares GUI parts such as buttons and text boxes as a class and interactively operates in a visual environment to construct a GUI.

【0003】このようなツールを用い、ソフトウェア開
発者はウィンドウ枠クラスのインスタンスであるウィン
ドウ枠オブジェクトを生成し、その中にボタン等の部品
クラスのインスタンスオブジェクトを配置していくこと
によりGUI構築を行うことができる。
Using such a tool, a software developer creates a window frame object which is an instance of the window frame class, and arranges instance objects of component classes such as buttons therein to construct a GUI. be able to.

【0004】[0004]

【発明が解決しようとする課題】従来のようなGUI構
築ツールを用いてGUI構築を行った場合、生成される
GUIオブジェクトは多くの場合には複数の部品オブジ
ェクトからなる複合オブジェクトとなる。
When GUI construction is performed using a conventional GUI construction tool, the generated GUI object is often a compound object composed of a plurality of component objects.

【0005】このような複合オブジェクトを1つ1つの
部品の集合として管理するのは不便であり、また、継承
を用いた差分プログラミングを行えるというオブジェク
ト指向のメリットを十分生かしきることができない。
It is inconvenient to manage such a composite object as a set of individual parts, and the advantage of object orientation that differential programming using inheritance can be performed cannot be fully utilized.

【0006】本発明の目的は、差分プログラミング機能
を持ち、ソフトウェア開発を容易にするGUIの構築方
法を提供することにある。
An object of the present invention is to provide a GUI construction method having a differential programming function and facilitating software development.

【0007】[0007]

【課題を解決するための手段】本発明は、前記課題の解
決を図るため、GUI構築ツールを用いてオブジェクト
指向のGUI構築を行うにおいて、GUIサーバのオブ
ジェクト管理は、クラスと、クラスを継承して生成する
派生クラスと、クラス又は派生クラスを型として生成す
るインスタンスとをファイルで管理し、インスタンスの
生成にはクラス又は派生クラスに記述されたインスタン
ス属性とインスタンスメソッドのコピーを作成し、オブ
ジェクトに対してメソッドの起動を要求するメッセージ
が与えられたときには当該オブジェクトから親クラスま
でのファイルに記述されているメソッドを検索するオブ
ジェクト指向の管理機能を設け、前記GUIサーバは、
クラスの中に他の部品クラスを取り込む複合クラスを扱
えるようにするため、以下の処理、 (1)クラス属性部に部品クラスのクラス名と相対位置
のリストを保持する。
According to the present invention, in order to solve the above-mentioned problems, in object-oriented GUI construction using a GUI construction tool, the object management of the GUI server inherits classes and classes. The derived class and the instance that generates the class or the derived class as a type are managed in a file, and to create the instance, create a copy of the instance attributes and instance methods described in the class or the derived class, and create an object. On the other hand, when a message requesting activation of a method is given, an object-oriented management function of searching a method described in a file from the object to a parent class is provided, and the GUI server is
In order to be able to handle a composite class that incorporates other component classes into the class, the following processing is performed: (1) The class name and relative position list of component classes are stored in the class attribute part.

【0008】(2)インスタンス属性部に部品オブジェ
クト名のリストを保持するフィールドを設ける。
(2) A field for holding a list of component object names is provided in the instance attribute part.

【0009】(3)インスタンスメソッドのコンストラ
クタに、部品クラスのインスタンスを生成しかつ該イン
スタンス名をインスタンス属性部の部品オブジェクト名
リストにセットして部品オブジェクトを生成する。
(3) An instance of the component class is generated in the constructor of the instance method, and the instance name is set in the component object name list of the instance attribute part to generate the component object.

【0010】(4)インスタンスメソッドのデストラク
タに、インスタンス属性部の部品オブジェクト名リスト
から部品オブジェクトを消滅させて部品オブジェクトを
消滅させる。
(4) The destructor of the instance method causes the component object to disappear from the component object name list in the instance attribute section and causes the component object to disappear.

【0011】ことを特徴とする。It is characterized in that

【0012】[0012]

【作用】クラス属性部に取り込む部品クラスのクラス名
と相対位置を、インスタンス属性部に部品オブジェクト
名のリストを保持し、複合オブジェクトの生成及び消滅
にはインスタンスメソッドのコンストラクタ及びデスト
ラクタに部品オブジェクトの自動生成及び消滅の機能を
持たせることにより、複合クラスを容易に構成できるよ
うにする。
[Operation] The class name and relative position of the part class to be loaded in the class attribute part are retained, and the list of part object names is held in the instance attribute part. To create and delete a complex object, the instance method constructor and destructor automatically By providing the functions of creating and erasing, it is possible to easily compose a composite class.

【0013】[0013]

【実施例】本実施例のGUI構築方法は、GUIサーバ
に複数のクラスからなる複合オブジェクトを扱う機能を
持たせる。そのため、GUIサーバのオブジェクトの管
理方式を以下のようにする。
[Embodiment] In the GUI construction method of this embodiment, a GUI server is provided with a function of handling a composite object composed of a plurality of classes. Therefore, the GUI server object management method is as follows.

【0014】(1)図1は、クラスと、クラスからのイ
ンスタンス生成の例を示す。
(1) FIG. 1 shows a class and an example of instance generation from the class.

【0015】(1A)クラスは、クラス名と、属性と、
メソッドをテキスト形式でファイルに保存する。
(1A) class includes a class name, attributes,
Save the method in text format to a file.

【0016】属性には、クラスに共通なクラス属性と、
インスタンス毎のインスタンス属性を設ける。また、メ
ソッドにはクラスに共通なクラスメソッドと、インスタ
ンス毎のインスタンスメソッドの2種類のものを設け
る。
The attributes include class attributes common to the classes,
Provide instance attributes for each instance. Two types of methods are provided: a class method common to classes and an instance method for each instance.

【0017】図示では、クラス名「PushButto
n」のGUI部品と、テキスト形式のクラスデータ例を
示す。
In the figure, the class name "PushButto"
The GUI component of "n" and the class data example of a text format are shown.

【0018】(1B)インスタンスは、クラスを型とし
て生成される。この生成において、インスタンス名及び
クラスに記述されたインスタンス属性と、インスタンス
メソッドのコピーがテキスト形式で保存される。
(1B) An instance is created with a class as a type. In this generation, the instance name and the instance attribute described in the class and a copy of the instance method are saved in a text format.

【0019】これらインスタンス属性とインスタンスメ
ソッドは、後から自由に変更することができる。
These instance attributes and instance methods can be freely changed later.

【0020】図示では、インスタンス名「aPushB
utton」のGUI部品と、テキスト形式のインスタ
ンスデータ例を示す。
In the figure, the instance name "aPushB
A GUI component of "utton" and instance data in text format are shown.

【0021】(2)図2は、派生クラスと、派生クラス
からのインスタンスの生成例を示す。
(2) FIG. 2 shows a derived class and an example of generating an instance from the derived class.

【0022】(2A)クラスは継承することができる。
この場合、派生クラスは、親クラスとの差分のみがテキ
スト形式で保存される。
(2A) Class can be inherited.
In this case, the derived class stores only the difference from the parent class in text format.

【0023】図示では、継承により生成される派生クラ
ス名「ColoredPushButton」には、属
性「color」が追加される。
In the figure, the attribute "color" is added to the derived class name "ColoredPushButton" generated by inheritance.

【0024】(2B)派生クラスのインスタンスは、派
生クラスを型として生成される。この生成において、イ
ンスタンス名及び先祖代々のクラスに記述されたインス
タンス属性とインスタンスメソッドのコピーがテキスト
形式で保存される。
(2B) An instance of the derived class is generated with the derived class as a type. In this generation, a copy of the instance name and instance method and instance method described in the ancestral class is saved in text format.

【0025】これらインスタンス属性とインスタンスメ
ソッドは、後から自由に変更することができる。
These instance attributes and instance methods can be freely changed later.

【0026】図示では、クラス名「PushButto
n」のインスタンス属性とインスタンスメソッドのコピ
ーが保存されている例を示す。
In the figure, the class name "PushButto"
An example is shown in which a copy of the instance attribute and instance method of "n" is saved.

【0027】以上のように、GUIサーバによるオブジ
ェクト管理は、クラスと、クラスを継承して生成する派
生クラスと、クラス又は派生クラスを型として生成する
インスタンスとをファイルで管理し、インスタンスの生
成にはクラス又は派生クラスに記述されたインスタンス
属性とインスタンスメソッドのコピーを生成する。
As described above, in the object management by the GUI server, a class, a derived class which is inherited from the class and an instance which is generated as a class or a derived class as a type are managed by a file, and the instance is generated. Creates a copy of the instance attributes and instance methods described in the class or derived class.

【0028】このオブジェクトに対して、メソッドの起
動を要求するメッセージが与えられたとき、GUIサー
バは、当該オブジェクトのファイルに記述されているメ
ソッドを検索し、そこでメソッドが見つからなければ当
該オブジェクトを生成したクラスのファイルに記述され
ているメソッドを検索し、そこでも見つからなければ更
にその親クラスのファイルに記述されているメソッドを
検索する。
When a message requesting the activation of a method is given to this object, the GUI server searches the method described in the file of the object, and if the method is not found there, the object is generated. The method described in the file of the specified class is searched, and if it is not found there, the method described in the file of the parent class is further searched.

【0029】以上のような機構を、次のように拡張する
ことにより、複合オブジェクトを扱えるようにする。
By extending the above mechanism as follows, a composite object can be handled.

【0030】(3)複合クラスは、1つのクラスの中に
他の部品クラスを取り込んで構成する。このとき、以下
の規則にしたがって構成する。
(3) The composite class is constructed by incorporating other component classes into one class. At this time, it is configured according to the following rules.

【0031】(3A)ファイルのクラス属性部に取り込
む部品クラスのクラス名及び相対位置のリストを保持す
る。
(3A) A list of class names and relative positions of component classes to be stored in the class attribute part of the file is held.

【0032】(3B)インスタンス属性部に取り込む部
品オブジェクト名のリストを保持するフィールドを設け
る。
(3B) A field for holding a list of component object names to be taken into the instance attribute part is provided.

【0033】(3C)インスタンスメソッドのコンスト
ラクタに以下の操作を追加し、複合オブジェクトが生成
されるときは部品オブジェクトも生成されるようにす
る。
(3C) The following operation is added to the constructor of the instance method so that when the composite object is generated, the part object is also generated.

【0034】a.クラス属性部に指定された部品クラス
のインスタンスを生成して配置する。
A. Generate and place an instance of the part class specified in the class attribute part.

【0035】b.生成したインスタンス名をインスタン
ス属性部の部品オブジェクト名リストにセットする。
B. Set the generated instance name in the part object name list in the instance attribute part.

【0036】(3D)インスタンスメソッドのデストラ
クタに以下の操作を追加し、複合オブジェクトが消滅す
るときは部品オブジェクトも消滅させるようにする。
(3D) The following operation is added to the destructor of the instance method so that when the composite object disappears, the part object also disappears.

【0037】a.インスタンス属性部の部品オブジェク
ト名リストから部品オブジェクトを特定し、消滅させ
る。
A. Identify the component object from the component object name list in the instance attribute section and delete it.

【0038】図3は、クラス「Window」にクラス
「PushButton」を合成した複合クラスの生成
例をGUI部品とファイル内容で示す。
FIG. 3 shows a GUI component and file contents as an example of generation of a composite class in which the class "PushButton" is combined with the class "Window".

【0039】このような機構をGUIサーバに設けるこ
とにより、複合オブジェクトを取り扱うことができ、し
かもそれらに継承を適用できるような機能をサポートす
ることができる。
By providing such a mechanism in the GUI server, it is possible to handle the complex objects and to support the function of applying inheritance to them.

【0040】[0040]

【発明の効果】以上のとおり、本発明によれば、GUI
サーバはオブジェクト指向の管理機能を有し、さらに複
合オブジェクトを取り扱えるようにしたため、以下の効
果がある。
As described above, according to the present invention, the GUI
The server has an object-oriented management function, and since it can handle complex objects, it has the following effects.

【0041】(1)オブジェクトのクラス継承による差
分プログラミングによりプログラムのコード量を減らす
ことができる。
(1) The code amount of a program can be reduced by differential programming by inheriting classes of objects.

【0042】(2)GUI部品として操作やデータを持
った高機能なオブジェクトを配置するため、クライアン
トであるアプリケーションの負担が小さくなり、クライ
アントのコード量を減らすことができる。
(2) Since a highly functional object having operations and data is arranged as a GUI part, the load on the application which is the client is reduced, and the code amount of the client can be reduced.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の一実施例におけるクラスとインスタン
スの生成例。
FIG. 1 is an example of generating classes and instances according to an embodiment of the present invention.

【図2】本発明の一実施例における派生クラスとインス
タンスの生成例。
FIG. 2 is an example of generating a derived class and an instance in one embodiment of the present invention.

【図3】本発明の一実施例における複合クラスの生成
例。
FIG. 3 is an example of generating a composite class according to an embodiment of the present invention.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 GUI構築ツールを用いてオブジェクト
指向のGUI構築を行うにおいて、 GUIサーバのオブジェクト管理は、クラスと、クラス
を継承して生成する派生クラスと、クラス又は派生クラ
スを型として生成するインスタンスとをファイルで管理
し、インスタンスの生成にはクラス又は派生クラスに記
述されたインスタンス属性とインスタンスメソッドのコ
ピーを作成し、オブジェクトに対してメソッドの起動を
要求するメッセージが与えられたときには当該オブジェ
クトから親クラスまでのファイルに記述されているメソ
ッドを検索するオブジェクト指向の管理機能を設け、 前記GUIサーバは、クラスの中に他の部品クラスを取
り込む複合クラスを扱えるようにするため、以下の処
理、 (1)クラス属性部に部品クラスのクラス名と相対位置
のリストを保持する。 (2)インスタンス属性部に部品オブジェクト名のリス
トを保持するフィールドを設ける。 (3)インスタンスメソッドのコンストラクタに、部品
クラスのインスタンスを生成しかつ該インスタンス名を
インスタンス属性部の部品オブジェクト名リストにセッ
トして部品オブジェクトを生成する。 (4)インスタンスメソッドのデストラクタに、インス
タンス属性部の部品オブジェクト名リストから部品オブ
ジェクトを消滅させて部品オブジェクトを消滅させる。 ことを特徴とするGUIの構築方法。
1. In object-oriented GUI construction using a GUI construction tool, object management of a GUI server generates a class, a derived class that is inherited from the class, and a class or a derived class as a type. The instance and the file are managed. To create the instance, make a copy of the instance attribute and instance method described in the class or the derived class, and when a message requesting the activation of the method is given to the object, the object is created. To a parent class are provided with an object-oriented management function for searching a method described in a file, and the GUI server performs the following processing in order to handle a composite class that incorporates another component class into the class. , (1) In the class attribute part, the part class Holds a list of ras names and relative positions. (2) A field for holding a list of component object names is provided in the instance attribute part. (3) An instance of the part class is created in the constructor of the instance method, and the instance name is set in the part object name list of the instance attribute part to create the part object. (4) The destructor of the instance method causes the component object to disappear from the component object name list in the instance attribute part and causes the component object to disappear. A method for constructing a GUI characterized by the following.
JP6310116A 1994-12-14 1994-12-14 Structuring method for gui Pending JPH08166874A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6310116A JPH08166874A (en) 1994-12-14 1994-12-14 Structuring method for gui

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6310116A JPH08166874A (en) 1994-12-14 1994-12-14 Structuring method for gui

Publications (1)

Publication Number Publication Date
JPH08166874A true JPH08166874A (en) 1996-06-25

Family

ID=18001376

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6310116A Pending JPH08166874A (en) 1994-12-14 1994-12-14 Structuring method for gui

Country Status (1)

Country Link
JP (1) JPH08166874A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012108907A (en) * 2010-11-18 2012-06-07 Korea Electronics Telecommun User feedback-based dynamic economical system reconfiguration method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012108907A (en) * 2010-11-18 2012-06-07 Korea Electronics Telecommun User feedback-based dynamic economical system reconfiguration method

Similar Documents

Publication Publication Date Title
US6532471B1 (en) Interface repository browser and editor
US6401101B1 (en) Method, server/computer and data structure for implementation of complex objects in an object-oriented database
US6044217A (en) Hierarchical metadata store for an integrated development environment
US8060832B2 (en) Managing information display
US7359990B2 (en) Editing files of remote systems using an integrated development environment
US6633313B1 (en) Event routing mechanism in a computer system
US8280919B2 (en) Systems and methods for validating design meta-data
US6970883B2 (en) Search facility for local and remote interface repositories
US6851105B1 (en) Method and system for generating, applying, and defining a pattern
US20080120593A1 (en) GUI modeling of deep hierarchical data
JP3566550B2 (en) Computer system and computer readable storage medium for developing a software system
US20040003091A1 (en) Accessing a remote iSeries or AS/400 computer system from an integrated development environment
US20080163253A1 (en) Dynamic business object properties for SOA architectures
JP2003528358A (en) Workflow system and method
US20030056195A1 (en) Code generator
JP2004280820A (en) Framework for supporting business software application
US20050235258A1 (en) Method, plug-in and program product for customizing java bean properties
US20030236925A1 (en) Interactive portable object adapters support in an integrated development environment
US5463769A (en) Method and apparatus using dictionary of methods and states for high performance context switching between build and run modes in a computer application builder program
US6460089B1 (en) Method and system for extending functionality of a management console
US6223185B1 (en) Method for defining composed object methods and attributes by dynamically presenting composite values and options
US6581203B1 (en) Technique for visually creating and adding members to a class
Ferguson et al. MetaMOOSE—an object-oriented framework for the construction of CASE tools
JPH08166874A (en) Structuring method for gui
Fleischmann et al. Modeling and implementing of industrie 4.0 scenarios