Questions tagged [composite]

The Composite pattern is a design pattern that allows a group of objects to be treated in the same way as a single instance of an object. It is one of the Gang of Four's structural design patterns.

Overview

The Composite pattern is a design pattern that allows a group of objects to be treated in the same way as a single instance of an object.

It is one of the Gang of Four's structural , first published in Gamma et al.'s book "Design Patterns: Elements of Reusable Object-Oriented Software".

The Composite pattern may sometimes coincide with the use of composite data types and composite variables.

See also

979 questions
0
votes
0 answers

GWT Resizable Composite

I'm trying a simple experiment with ResizableComposite by logging width & height of the widget, but I'm not getting any response. ResizableFlowPanel public class ResizableFlowPanel extends FlowPanel implements RequiresResize, ProvidesResize { …
hba
  • 7,406
  • 10
  • 63
  • 105
0
votes
2 answers

Selective menu detection within a Composite

I want to add some objects into an Composite object. Objects can have different shapes (rectangle, circle, ellipse or even weird shape (represented by a polygon). So I defined classes like this: public class Circle extends Canvas { } public class…
Hieu Nguyen
  • 382
  • 2
  • 15
0
votes
1 answer

How create action for composite

I've created my own org.eclipse.swt.widgets.Composite. I am using this composite within a org.eclipse.jface.wizard.WizardPage. org.eclipse.swt.widgets.Composite has a variable pageComplete. I have to check the value of this variable after any change…
qizer
  • 519
  • 2
  • 6
  • 14
0
votes
4 answers

In Prism (CAL), how can I RegisterPresenterWithRegion instead of RegisterViewWithRegion

I have a module in a Prism application and in its initialize method I want to register a presenter instead of a view with a region, i.e. I want to do this: PSEUDO-CODE: regionManager.RegisterPresenterWithRegion( "MainRegion",…
Edward Tanguay
  • 189,012
  • 314
  • 712
  • 1,047
0
votes
2 answers

Limit USB gadget driver speed

tl;dr: How do I compel Linux to reject high-speed USB connections so that it defaults to full speed? Full explanation: I'm writing a USB gadget driver based on Linux gadget zero. The hardware I'm testing on has high speed capable USB which won't be…
user1783395
  • 95
  • 1
  • 5
0
votes
1 answer

NHibernate: Composite key, one-to-one relation and "Error performing LoadByUniqueKey"

I have two classes. Class 1: public class Einsatz { public virtual ProjNrPindex Id { get; set; } public virtual Int32? Knr { get; set; } public virtual String RessNr { get; set; } public virtual String AdrNr { get; set; } public…
cdbeelala89
  • 2,066
  • 3
  • 28
  • 39
0
votes
1 answer

Using the MVP for a composite structured object model

(Edited a lot) I've got some classes with Abstracts Members. The concrete type of the abstract members is to be determined at the class instanciation, based on the user's input. However, the second member's concrete type might depend on the first…
Tipx
  • 7,367
  • 4
  • 37
  • 59
0
votes
1 answer

Composite datawindow to txt

I have built a composite datawindow in Powerbuilder 11.5 that presents the invoice form of my application. As most fiscal papers here in Greece, I have to send it as a text file to a fiscal device that composes a digital tax signature that I then…
PanosPlat
  • 940
  • 1
  • 11
  • 29
0
votes
2 answers

Problems with Eclipse Window Builder Composite

I am experiencing some problems with Window Builder example: https://developers.google.com/web-toolkit/tools/gwtdesigner/features/custom_composites When I copy the codes to my Eclipse, I have an error in the code: …
Alex
  • 3,325
  • 11
  • 52
  • 80
0
votes
1 answer

Access to a compositive rowkey in Cassandra

Possible Duplicate: Misunderstanding on Composite Key for Cassandra I have a columnfamily with a composite key: create column family MyCF with key_validation_class = 'CompositeType(UTF8Type, UTF8Type)' and comparator = 'CompositeType(UTF8Type,…
0
votes
4 answers

How to get max of composite data in SQL?

SELECT "Name""Month","Year","Value" from Table WHERE "Name" LIKE '%JERRY%' AND "Year" = (SELECT MAX("Year") FROM Table where "Name" LIKE '%JERRY%') AND "Month"= (SELECT MAX("Month") FROM Table where "Name" LIKE…
outflanker
  • 445
  • 1
  • 5
  • 19
0
votes
2 answers

In CAB is a service its own module?

I'm learning Composite Application Block and I've hit a rock about services. I have my shell application in its own solution, and of course a test module in its own solution (developed and testing completely independent and external of the shell…
David Anderson
  • 13,558
  • 5
  • 50
  • 76
0
votes
1 answer

JPA Composite Primary Key generating

I have simple entity class (irrelevant methods omitted): @Entity @Table(name="CONNECTIONS") public class Connection implements Serializable { @Id private Long id_track; @Id private Long id_carrier; @Id private Date date_out; …
biera
  • 2,608
  • 1
  • 24
  • 26
0
votes
1 answer

How to populate checkbox in Zend custom composite element?

In Zend I have a custom composite element which consists of two text fields and a checkbox. This is the view helper:
Magda K.
  • 145
  • 1
  • 3
  • 7
0
votes
1 answer

Map Composition in Fluent NHibernate

There are 2 classes: Product and Image. The Product has only one Image. No orphan Images can exist. This represent composition relationship in UML which means: Assigning Product.Image a newImage results in following delete old…
Dmytrii Nagirniak
  • 23,696
  • 13
  • 75
  • 130