Dear All,
I am learning the document/view design. The document stores data and
provides GUI-independent operations upon it; while the views display
and manipulate the data.
Assume I have several objects to display in the view. And I can hide
some objects in the view.
My question is that: May I need to store the hide status of an object
in the document? If I store them, when on updating the view by the
document, I can still hide those that are asked to hide before. But
accoding my understanding, the hide status is GUI-dependent, and it
will spoil the original intention of separation of document and view.
Anybody can give me some suggestion?
Thanks a lot!
Shuisheng 2 1414
shuisheng wrote:
Dear All,
I am learning the document/view design. The document stores data and
provides GUI-independent operations upon it; while the views display
and manipulate the data.
Assume I have several objects to display in the view. And I can hide
some objects in the view.
My question is that: May I need to store the hide status of an object
in the document? If I store them, when on updating the view by the
document, I can still hide those that are asked to hide before. But
accoding my understanding, the hide status is GUI-dependent, and it
will spoil the original intention of separation of document and view.
Anybody can give me some suggestion?
It's very difficult to understand you but if I get your meaning you may
be served by using several views governed by a mediator.
On Feb 16, 2:32 pm, "shuisheng" <shuishen...@ya hoo.comwrote:
Dear All,
I am learning the document/view design. The document stores data and
provides GUI-independent operations upon it; while the views display
and manipulate the data.
Assume I have several objects to display in the view. And I can hide
some objects in the view.
My question is that: May I need to store the hide status of an object
in the document?
I don't see any need to do this. All the GUI toolkits I've worked with
support some sort of hide() operation for widgets.
If I store them, when on updating the view by the
document, I can still hide those that are asked to hide before. But
accoding my understanding, the hide status is GUI-dependent, and it
will spoil the original intention of separation of document and view.
It sure would violate the document/view separation to store view
information within the document.
>
Anybody can give me some suggestion?
Thanks a lot!
Shuisheng
HTH,
Paul Davis This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Joe |
last post by:
I'm designing a company website. I'm relatively new to CSS and I'm having
trouble creating what seems to me a very simple design:
- body background: fixed full page image
- banner: fixed, 100 pixels high, full-width, transparent background
- nav bar: fixed, 200 px wide, auto-height, opaque nav icons,
semi-transparent tiled image background
- content box: scrolling, auto height, auto width, opaque text,
semi-transparent tiled image...
|
by: sk |
last post by:
I have an applicaton in which I collect data for different parameters
for a set of devices. The data are entered into a single table, each
set of name, value pairs time-stamped and associated with a device.
The definition of the table is as follows:
CREATE TABLE devicedata
(
device_id int NOT NULL REFERENCES devices(id), -- id in the device
|
by: Eli |
last post by:
I've got a script that I'm trying to debug which uses document.write()
to place HTML within a page. In both IE6 and Firefox when I view
source, I see only the script itself and not any HTML as it's being
written into the page.
Is there a way that I can view what is being placed into the page,
instead of, or in addition to the javascript code?
|
by: Francesc |
last post by:
Hi,
After some years programming libraries and web based applications I'm
trying to program my first not-silly windows application (something
similar to an editor but just to annotate text lines).
After some trials just putting some code directly at the control events
I tried to refactorize a little. But after read some documents on CMV
(Controller-Model-Viewer) pattern I spent all this week trying
unluckily to use it.
|
by: david |
last post by:
I have asked this question before. But it does not work for me. Given radion
buttons in the web form design page. What I did is described as follows.
A panel control is dragged into the design form, and a table control is
dragged into the panel from tooolbox. Add cells for the table through the
properties. Now I cut a radio button, and click the table (note I can not
select a cell), then right click Paste. The button is not in expected...
| |
by: Hexman |
last post by:
Hello All,
I'd like your comments on the code below. The sub does exactly what I want it to do but I don't feel that it is solid as all. It seems like I'm
using some VB6 code, .Net2003 code, and .Net2005 code. I'm developing in vb.net 2005.
This test sub just reads an input text file, writing out records to another text file, eliminating records that have a '99' in them (it is similar to
a CSV file).
Some of my concerns are:
|
by: gunimpi |
last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431
********************************************************
VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help
wanted
********************************************************
For this teeny job, please refer to:
http://feeds.reddit.com/feed/8fu/?o=25
|
by: pnd1234 |
last post by:
Hi, i am doing a project which represent message attachments in a xml
view.I currently
implemented the system in a tree view.Like if a message contains word
file, zip file,image file
, swf file as attachment then it represents the over all attachments
in a tree node like message
in root node with attachments doc, image file and swf as its child
node. Further, if there are image or charts inside word document i
have to represent this as a...
|
by: souporpower |
last post by:
Hello All
I am trying to activate a link using Jquery. Here is my code;
<html>
<head>
<script type="text/javascript" src="../../resources/js/
jquery-1.2.6.js"</script>
<script language="javascript" type="text/javascript">
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |